Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: shail
  • Order by date
  1. shail

    Urgent : Problem with conduit [large records in DB]

    Hi, I am creating DB's on the palm which have a special format of record sizes being ~ 63 KB (keeping it well below 64kb limit). I can access read/write successfully to these DB's. These DB's are also created by a conduit to contain such records. When I attempt a sync using a emulator, it...
  2. shail

    automatically increase build number

    hi sxper, instead of writing a c code for this.. u may want to write a shell script in Makefile which does just that .. hope that helps.. shail
  3. shail

    How to end a process

    hi, Now thats something i have long wondered about.. a windoz sdk programmer can talk on this.. How do u get process IDs programmatically or otherwise on windoz..and send signals to them? do the bsd calls work? they should :( tia, shail
  4. shail

    Need the function of strcat using pointers??

    hi john, this sounds like a class assignment. and so take a look at the size of ur destination string. is it large enough to receive the total data? a "string" in C must be terminated with a null "\0" or 0 (ascii val) character.. is that correct for ur strings?? and btw at...
  5. shail

    C and interpreted languages

    hi, there is one more concern to interpreted languages, such programs shall run as long as u have a interpreter running.. so no low level stuff, kernel etc. without compiled languages afaik, if those r not ur concerns perl can do all and even more.. but if u were so experienced in perl, C...
  6. shail

    Help with parsing the string

    how about.. char connection[100]; strcpy(connection, "username/password@dbinstance"); /* some sample string */ char *username, password, dbinstance; username = &connection[0]; password = strchr(username, '/'); *password++ =0; dbinstance= strchr(password, '@'); *dbinstance++ =0; thats...
  7. shail

    newbie string question

    hi kosuke, lemme give u a hint.. u know how to swap variables without a temp variable? a, b r the ints.. a=aXORb b=bXORa (b XOR (a XOR b)) = a a=aXORb ((a XOR b) XOR a) = b ! if strlen is n then every 'i'th character goes to (n-i) position? hth, shail
  8. shail

    strcpy replaced by a better function

    hi blk, what errors do u c? how about this.. ? void scopy(char **dest, const char *src) { if ( (*dest = (char*) malloc( (strlen(src) + 1) * sizeof(char) ) ) != NULL ) strcpy(*dest, src); else { fprintf(stderr,"Error while copying string\n",); exit(1); } } in...
  9. shail

    Problem in search function to read data in file using fseek and fread

    hi daryl, ur fread for sizeof(item) is going to read 314 bytes straight from the curr. file pointer.. i don't see ur file data as normalized to that effect.. u would do better to read strings, build ur own parser on file description and copy in to ur item struct. hth, shail
  10. shail

    I can't print

    hi, do u have the lpd active... check the ps -aux o/p hth, shail
  11. shail

    setting path using the Bash shell

    hi, this might be late.. but what the heck... .bashlogout is executed each time u "logout" as for any other questions `man bash' will provide all the answers. hth, shail.
  12. shail

    PS problem

    hi MikeLacey, just want to know . what is the diff betn the two ? should give the same o/p right? u grep on process.sh first and then remove the grep process.. while the earlier was first removing the grep processes from the entire list and then grep'ing on process.sh only... other than...
  13. shail

    PS problem

    hi, why do u think that there is only process in the process list of the name "*process.sh*" ?? print the o/p of ps -ef |grep -v grep |grep process.sh each time within the if block and see who is running the other process with a _similar_ name? hth, shail
  14. shail

    equivalent to netstat -rn in c as a func() call

    Hi, Is there a way to get the kernel routing table on _any_ unix os with a c func() call rather than using the shell utility of netstat? i have found sysctl() on bsd, but not supported on something like aix.. is there any better function. please inform. shail
  15. shail

    equivalent to netstat -rn in c as a func() call

    Hi, Is there a way to get the kernel routing table on _any_ unix os with a c func() call rather than using the shell utility of netstat? i have found sysctl() on bsd, but not supported on something like aix.. is there any better function. please inform. shail ps: cross posting to general unix...
  16. shail

    I lost the Linux Password(root)

    hi paul, i am not sure whether the restricted mode of lilo comes with default. And even if it does do you have a entry for "password = xxxxx" in your /etc/lilo.conf along with the key word "restricted"! else lilo would boot normally with "linux single" or...
  17. shail

    DNS Configuration

    hi, another reason is when u have a large n/w then if more than 2 different lan n/w (with different subnets ) exist then dns also helps in resolving which n/w a request belongs to. instead of sending a packet on all n/w for identification.. ofcourse as matrix7 says giving easy to identify with...
  18. shail

    No one in Network Neighborhood

    hi matrix7, r u saying a) that users logged in from ouside on the rh6.2 box can't finger/talk with users on the same box? or b) they can't ping ur internal ip addresses from b.1) telnet session on the server b.2) from their own m/cs which donot belong to ur network? a) -> should be directly...
  19. shail

    How do I convert Integer to String

    if u must, int length, i, j; char buf[15]; num=numofgroups; length=log10(num)+1; /*this can be leave one leading byte with a zero in it.*/ memset(buf,'0',15); for (i=0,j=length; i<length;i++) { buf[--j]=num%10; num /= 10; } buf[i]=0; printf(&quot;\nnow is %d == %s ??\n&quot...
  20. shail

    What is the value of a=10; a=a+++

    it is 33. a=33 after the statement... all r post increments.. so the lvalue returned is (10+10+10) and then u do the post increments thrice to get the new value of a=30+1+1+1=33! hth, shail.

Part and Inventory Search

Back
Top