![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Making Executable File | laxman123 | AIX | 0 | 06-12-2008 03:06 PM |
| Executable file | tonet | Shell Programming and Scripting | 3 | 01-17-2008 12:03 PM |
| Executable files | nervous | UNIX for Dummies Questions & Answers | 9 | 10-30-2007 04:44 AM |
| Creting 64-bit executable | axes | High Level Programming | 1 | 07-09-2006 01:06 PM |
| TK executable? | anent | UNIX for Dummies Questions & Answers | 3 | 01-03-2002 10:52 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I need a perl script that needs to start an executable in a different shell so that I can use this to run more commands from my script. This is what I have:
my $USER = "my_user_name"; mu $HOST = "hostname"; my $ssh = 'ssh $USER@'."$HOST"; my $cmd = "cd $EXE_DIR && sudo $EXE $EXE_PARAMETERS"; # To start the executable... system ("$ssh '$cmd' < temp_pipe 2>&1 &"); # To run commands on this ... if (some condition) $cmd = "Enable module 1"; system("$rsh '$cmd'" ); else $cmd = "Enable module 2"; system("$rsh '$cmd'" ) When I do an rsh, it complains saying the executable hasnt been started. Any suggestions? Thanks! |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|