Name: vish Date: July 19, 2006 at 07:41:31 Pacific Subject: script to update file timestamp OS: sun os CPU/Ram: sun4u Model/Manufacturer: ultra-60
Comment:
hi,
I am trying to write a unix script that recursively goes into each directory and 'touches' the file to update the time stamp.....any help on how to go about it is appreciated..
I am new to unix, I saved the file as test.sh and changed permissions using chmod 777 test.sh. When i try to run using ./test or test I keep getting the message "command not found"...wht am i doing wrong here?
I'm guessing that the directory where script test.sh resides isn't in your PATH. If your current directory is the directory where test.sh resides and it still doesn't work, try this:
./test.sh
If you want unix to search your current directory, append a period to end of PATH:
PATH=$PATH:. export PATH
I must warn you about the security considerations of doing this - especially if you are the root user.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE