![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need explanation of script | vishalpatel03 | Shell Programming and Scripting | 0 | 11-25-2007 05:55 PM |
| running cd from a script | SkySmart | Shell Programming and Scripting | 5 | 03-09-2007 12:07 AM |
| Script explanation | sickboy | Shell Programming and Scripting | 8 | 06-13-2005 03:25 PM |
| any explanation for thsi shell script behaviour | xiamin | Shell Programming and Scripting | 9 | 11-09-2001 01:13 PM |
| Running a script from CDE... | kristy | UNIX for Dummies Questions & Answers | 4 | 09-05-2001 11:33 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Explanation of running this script
I have a script that has defined a log file like this.
The name of the script is verify.sh Inside the script there is some thing like this. LOG=/usr/verify TDATE=`date "+%m%d%y"$$` LOGFILE=$LOG.$TDATE. and inside the script it has been written as echo "This is to verify" | tee -a $LOGFILE. I understood that for every run this script will generate the mog file with the date appended to it. But I am not getting to know whether I have to create the file before running the script or the script will itself create the file. If I run the script as it is, it doesnt create the file. Please put some light on how to run this script. Thanks in advance. |
|
|||||
|
Bumping up your posts is going against the rules. Your original thread - Creating a file inside a script
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|