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.
test argument
Name: aline Date: May 10, 2006 at 03:23:24 Pacific OS: Solaris 8 CPU/Ram: 4x1200MHz/8gb Product: SunFire/V1280
Comment:
Trying to write a script to move files and tag, said files so that we still have original file and a tag file to signify file already moved, this works ok the first time, but when script is run again trying to move next lot of new files I am being asked for a test argument in script. Ran this with ksh -x this is part of output ls -lt file.rtf file1.rtf file11.rtf file12.rtf file13.rtf file14.rtf file15.rtf file2.rtf file3.rtf file4.rtf file5.rtf file6.rtf + cut -c54-67 + 1> /export/home/itstech/frbtag/test.tmp + x=0 + + cat /export/home/itstech/frbtag/test.tmp + wc -l rec= 12 + [ 0 -le 12 ] + head -1 /export/home/itstech/frbtag/test.tmp + 1> /export/home/itstech/frbtag/record + cat /export/home/itstech/frbtag/record + read NXT + [ !-f file15.rtf_tag ] mobbcpy[18]: test: argument expected + sed 1d /export/home/itstech/frbtag/test.tmp
Summary: I have written a script that will print out a default message if a comment is not supplied, as shown below - "Call the ESS Team". Comment="" Comment=`$DRIVESTATUS/vmoprcmd -d ad | awk '$1=='$DriveInd...
Summary: I apologize in advance for the verbose answer, but you will see that there are a lot of things to consider. Your code, as posted, has some syntax errors ... While the assignment to myvar is done witho...
Summary: I get "test: argument expected" when I use this function and also when I use -G. On the other hand -x works perfectly every time! I own both files and I am the one starting the process, so is this f...