The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-21-2006
sendhilmani sendhilmani is offline
Registered User
  
 

Join Date: Apr 2005
Posts: 12
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.
  #2 (permalink)  
Old 03-21-2006
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
Bumping up your posts is going against the rules. Your original thread - Creating a file inside a script
  #3 (permalink)  
Old 03-21-2006
sendhilmani sendhilmani is offline
Registered User
  
 

Join Date: Apr 2005
Posts: 12
OK. I'm sorry
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:30 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0