perl if/then

2008-09-03 Thread littlehelphere
I have a script in which I distribute directories to host. I use either rdist or scp based on their OS. For example older sun machines need rdist while newer machines can use scp. For some reason the function below only resorts to scp. what I would like to do is an if/ then statement. I know in

Re: Help on perl alarm

2008-02-07 Thread littlehelphere
On Feb 5, 9:26 pm, [EMAIL PROTECTED] (Rob Dixon) wrote: > [EMAIL PROTECTED] wrote: > > 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 ad

Help on perl alarm

2008-02-05 Thread littlehelphere
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