I am using perl alarm within a script and having an issue. I want to access a host by first trying rsh and if that fails use ssh. I can get the command to run with only one of the commands but when I add both it fails. I must be missing something simple
Here is the info: Part of script .... else { $cmd="perl -e 'alarm(5);exec qq/${rdist} -cR \$srcdir $ENV{host}:\$destdir ||${scp} -pr \$srcdir $ENV{host}:\$destdir/'"; } Error I get Bareword found where operator expected at -e line 1, near "qq//usr" syntax error at -e line 1, near "qq//usr" Bareword found where operator expected at -e line 1, near "/bin/scp" (Missing operator before p?) Execution of -e aborted due to compilation errors. I have already set the rdist variable and have even tried to specify the rdist path. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/