Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Urgent help with KSH script
Name: Kalyan_Unix Date: January 28, 2008 at 08:32:47 Pacific OS: Unix CPU/Ram: Intel
Comment:
Hi All:
I need a KSH script which does the following: 1. CD to Directory - "/home/RAOB/TOC/" and list the files present in that directory
2. Generate both Local time and GM time and compare the file's time with GM time.
3. If the file's timestamp is lower than the GM time (meaning 3 days older), then we move it to a new directory from the list and pick another file. Else, process it as an command line argument to program (/root/home/source/programs/abc.c)
4. Paralelly, append that file, which is processed from the directory and store it in a log file
Summary: Hello all, I'm having a problem with one part of my KSH script. Below is the script and OutPut. What I would like to do next is combine field 1 "example = Accoskypager" with the other Accoskypager bu...
Summary: Hi All: I am a newbie for ksh scripting.My code doesn't work. Can someone help? I am trying to automate the process of file read from a directory. The files older than 3 days are supposed to be archiv...
Summary: Hello, Can some one tell me what was wrong with my script? I have file called list cat list s001 v s010 h s999 s ================== here is my script: for i in `cat list` do store=`echo $i |awk '{prin...