The UNIX and Linux Forums  

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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Bourne-again shell mrsamer UNIX for Dummies Questions & Answers 3 09-29-2006 11:42 PM
bourne shell programming help! ganjakh0r UNIX for Dummies Questions & Answers 1 11-27-2005 04:44 PM
Bourne Shell scripting help PoloRL185 Shell Programming and Scripting 1 05-13-2005 09:09 AM
bourne shell not working gillbates Shell Programming and Scripting 6 06-17-2004 01:22 PM
bourne shell script psrinivas Shell Programming and Scripting 2 12-06-2001 11:38 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-01-2008
Registered User
 

Join Date: Sep 2007
Posts: 53
how to log if the program contains both bourne-shell & pearl scripts

I have a program (say, MyProgram) written in Bourne-shell script, but at some point it calls another script written in pearl, as illustrated below:

#!/bin/sh
.....
case $x in
1) ConfigSystem1 ( b-shell script)
2) ConfigSystem2 ( pl)
3) ConfigSystem3 (b-shell)
....


Then I create another script (call ConfigSystem) in an attemp to capture the screenshot & save it in a dated log file:

#!/bin/sh
datestamp=`date +%y%m%d_%H%M%S`
MyProgram 2>&1 | tee ../logs/ConfigSystem_$datestamp.log


If I run ConfigSystem, it hangs at the point where the pearl script is called.

If I run MyProgram, it is fine (but with no log)

Why does it hang on the pl script or is there another log utility that can work in this case?

Thanks in advance!!
Reply With Quote
Google UNIX.COM
Forum Sponsor
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:32 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0