NEWBIE: Why this behavior on ksh for On 28 jul, 18:03, "Chris F.A. Johnson" <cfajohn...(a)gmail.com> wrote: On 2010-07-28, Atropo wrote: Hi all. My intend was to copy several files on several serves on differents dirs. #!/bin/ksh #File=$1 sPath=/sourcepath #sPath=$2 #tPath=$3 for server in "1 2 3 4" ... 28 Jul 2010 23:56
NEWBIE: Why this behavior on ksh for Hi all. My intend was to copy several files on several serves on differents dirs. #!/bin/ksh #File=$1 sPath=/sourcepath #sPath=$2 #tPath=$3 for server in "1 2 3 4" do echo Server $server for File in "file1 file2 file3 " do while read tPath #dirs where the files will be copy do echo scp $sPath/... 4 Aug 2010 21:15
find command I am trying use the command "find" to search for files that start with 2009 into all subdirectories. ... 28 Jul 2010 12:57
Directory creation and file moving by modification dates? Hi, I have accumulated a directory with at least 5000 digital images. They're always named like img_9374.jpg etc. Doing a simple 'ls' takes a long time to return the list given the amount of images present. Some graphic programs also seem to impose a limit of what they can preview or list. Furthermore, my d... 9 Aug 2010 15:40
What is the most portable syntax of these two choices? I have this in a script, where $UNAME will be the output of 'uname', except on Cygwin, where it will be "CYGWIN". What of the following two lines is more portable? if [ "x$UNAME" != xSunOS ] && [ "x$UNAME" != xCYGWIN ] && [ "x$UNAME" ! = xHP-UX ]; then or if [ "$UNAME" = SunOS -a "$UNAME" = CYGWIN -a "$UN... 1 Aug 2010 18:06
bash script: variable(s) in an internal cmd line I'm sure this will be casual to the most obvious observer. :-) But, I can't seem to wrap my head around it... I'm writing a script to convert audio files from one format (.aac) to another (.mp3), and the ID3 tags need to be set in the MP3 files after the conversion. I've got the extract-the-tags-from-the-aac-fi... 27 Jul 2010 10:36
Examine standard output and exit immediately if the exit codeis non-zero? On 2010-07-26, Jack Bates wrote: How can I make my script exit immediately if "svn export" in the following exits with a non-zero status? #!/bin/sh # Exit immediately if a simple command exits with a non-zero status set -e [...] # Export from vendor repository REV=`svn export http://... 27 Jul 2010 16:09
Examine standard output and exit immediately if the exit code is non-zero? How can I make my script exit immediately if "svn export" in the following exits with a non-zero status? #!/bin/sh # Exit immediately if a simple command exits with a non-zero status set -e [...] # Export from vendor repository REV=`svn export http://svn.symfony-project.com/branches/1.4 $TMPDIR/ symfony... 27 Jul 2010 15:03
log generation Hi all, please find the below script. Using the below script i am able to put the files from one location to other location but i want to know the files moving status through logs how i can i generate logs. Please help me. #!/binbash HOST='4sftp.four-soft.com' USER='lakshmanrao' PASSWD='xxxxxxxx' ftp -... 26 Jul 2010 11:38
moving files from current location to ftp Dear All, Please send me a script for the below purpose " moving files from current location to ftp" and need to generate a mail or log if files are not moving. Please send me as soon as possible it is very urgent for me. Regards, lakshmanrao ... 26 Jul 2010 14:56 |