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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by shail

  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...

Part and Inventory Search

Back
Top