More than likely, you are misusing system. If you are saying system( "csh" ); system( "ls -l" ); ... Then you are not understanding how system works. Everything system is executed it spawns a subshell which is destroyed on termination of the system call. Therefore, your csh does not last past the end of the first system call. To do this correctly, bundle all of your commands up into one system call and separate them with semicolons. system( "csh;ls -l" );
HTH, Tanton ----- Original Message ----- From: "Elanchezhian Sivanandam" <[EMAIL PROTECTED]> To: "beginners" <[EMAIL PROTECTED]> Sent: Thursday, October 31, 2002 1:45 AM Subject: c shell commands in perl script > hi, > i have to give a set of commands from a perlscript in bash and c > shell depending on an argument. > since my default shell is bash the commands i give work. > but for c shell the set of commands don't execute..... > i mean the subsequent commands after i go to c shell (system > "csh";) doesn't work. > > any suggestions??? > thanks u > > -- > cheers../elan > > visit www.tamil.net for tamil fonts > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]