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.
checking directory before executing
Name: sureshht Date: March 26, 2007 at 07:38:50 Pacific OS: AIX 5L CPU/Ram: 4CPU/8GB RAM Product: RS6000
Comment:
Hi, I am executing set of if conditions for my rollover of logs script. If the file exists then roll them over with dates. Now, I want to check whether the directory in which i am rolling over file, exists or not. if directory doesnot exists, I donot want to continue to rollover logs. I just want to come out of the loop. I am not sure whether I am clear about what I want. Let me know if its not clear.
Summary: First, are you sure that you have write permissions on this file? /$OUTFILE Second, if any of your directory objects contain spaces, you probably need to use double quotes around $LINE: find "/$LINE" ...
Summary: Sorry ,but I forgot to metion that it has to cd into each directory and execute the command: prostrct list automate eg: ./unitrans/vw/automate.st ./unitrans/toyota/automate.s ./bmi/automate.st ...
Summary: I have a script that has to record it's actions in a log file. I'd like to ensure that it always writes to a log file that is in the same directory as the script. I tried to establish the name of the ...