![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| 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 |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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!! |
|||
| Google UNIX.COM |
| Forum Sponsor | ||
|
|