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 Mike Lewis 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: *

  1. logic2fun

    AND / OR usage in a script

    Thank You guys.
  2. logic2fun

    AND / OR usage in a script

    Friends i am trying to use both AND and OR in one command and my OR doesnt seem to be working. Am i missing anything here if [ $srcCnt -ge 5000 ] && [ $ldCnt -le 200 ] || [ $sleepVar > 120 ] then Do something else SLEEP fi It looks like it is not accounting for my OR command. It works fine...
  3. logic2fun

    TAR & ZIP in C

    Friends, I am actually reading a set of files in C program. Once i finish performing some transformations I need to ZIP and Tar these input files. Right now the idea i have is using a SYSTEM command to run the UNIx command. Do we have any better way of doing this instead of SYSTEM command ...
  4. logic2fun

    Reading Files

    Thanks for the response i will try to simulate with multiple processes and see how goes.
  5. logic2fun

    Reading Files

    Hi All, I have a situation where we are planning to migrate from Stand Alone Applications to Multi threading processing. Situation is on a daily basis we read approximately a million files that comprise of a billion records. Today there is a stand alone application/applications(they run on...
  6. logic2fun

    Alter file without chaging the timestap

    cp -p will keep the timestamp of the file being copied. But i want it the other way round -rwxr-xr-x 1 XXX XXX 243 Apr 1 16:29 sum.sh Lets say the above file is already in place and i want to overwrite it with the following file -rwxr-xr-x 1 XXX XXX 243 Apr 2 00:29 sum.sh Which is...
  7. logic2fun

    Alter file without chaging the timestap

    How can i change or copy a file without changing its permissions and timestamp of creation of the file. i tried cp -p but doesnt seem to be working
  8. logic2fun

    Accumulate To Array

    Freinds, I am trying read some data and sum it up to an array. For example i have this dataset ID - Code - Reason - Time of Occurence --------------------------------- A - 123 - 1 - 10:00 A - 0 - 0 - 10:05 A - 125 - 2 - 10:06 A - 0 - 0 - 10:09 A - 123 - 1 - 10:10 A-0 -0-10:20 ---------------...

Part and Inventory Search

Back
Top