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.
ksh script
Name: Laura Leung Date: March 3, 2005 at 04:56:32 Pacific OS: win2000 CPU/Ram: ?
Comment:
Hello, I have a Ksh script problem. The scrip is polling a directory every 5 mins to get a file, which contains the input line like "put abc.dat /home/test" etc. If the file contain is not empty, the script have to check a predefine directory to found out how many file have and then add the filename in the variable to pass another directory. I have some coding as the following: while true do for Cname in $(ls /home/commend/) do if test -f $Cname ; then echo "Processing $Cname..."
# read the content of command file $read transfer-mode filename snodeid snode sourcedir destdir
if ($transfer-mode = "put")
# read the pre-define file directory for fname in $(ls /home/file/) do if test -f $fname ; then mv $fname $srcfile else echo "Handoff file not found!" fi done
#submit the process to another directory
fi else echo "File not found!" fi done sleep 300 done
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. I have a kornshell script that runs on a daily basis as a cron job. Part of what the script does is copy the folder contents from another server to the current server (server where KSH script is r...
Summary: Hi everyone, I was asked to create a ksh script which does the following: (using ksh88 on AIX) 1. Check if file transfer is finished (via sftp) 2. Check if transferred file 'xxxxMM.txt' exists where...