nibalan has asked for the wisdom of the Perl Monks concerning the following question:
submain.pl contains:
system("sh sourcing.sh");Sourcing.sh will have the following contents:
source startup.cshstartup.csh will have:
setenv CC_LIBDIR ${CC_ROOTDIR}/lib/perl setenv CC_STARTUP_FILE ${CC_LIBDIR}/cc_startup.pm
When I tried executing the perl script by executing the command perl submain.pl I get the following error:
/nfs/scm-cctools/Releases/Alpha_Beta/7_3_0/start.csh: line 1: setenv: command not found
/nfs/scm-cctools/Releases/Alpha_Beta/7_3_0/start.csh: line 2: setenv: command not found
But if I try to source a bash script it would work fine. How can I source a csh script using system command in perl?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: invoking a cshell using system comand
by jethro (Monsignor) on Jul 14, 2011 at 12:06 UTC | |
by nibalan (Initiate) on Jul 14, 2011 at 14:44 UTC | |
|
Re: invoking a cshell using system comand
by osbosb (Monk) on Jul 14, 2011 at 14:46 UTC |