Re: Script runs fine when passed args directly, not as stdin

2010-03-02 Thread Shlomi Fish
On Tuesday 02 Mar 2010 22:07:28 Joseph L. Casale wrote: > >I'm commenting on your code below with some general remarks. Not sure if > >this will fix your problem. > > Shlomi, > I greatly appreciate your time going through this, I have undergone > rewriting it from scratch with your suggestions. It

RE: Script runs fine when passed args directly, not as stdin

2010-03-02 Thread Joseph L. Casale
>I'm commenting on your code below with some general remarks. Not sure if this >will fix your problem. Shlomi, I greatly appreciate your time going through this, I have undergone rewriting it from scratch with your suggestions. It was a script I copied from an existing one which was a bad idea:)

Re: Script runs fine when passed args directly, not as stdin

2010-03-02 Thread Shlomi Fish
Hi jlc! On Tuesday 02 Mar 2010 06:38:09 Joseph L. Casale wrote: > Hi, > I should state first I don't have the luxury of using Perl often > and am super rusty:) > > I have a script that sends snmp commands to a switch either by passing > args directly or as stdin. It works when passing them direct

Script runs fine when passed args directly, not as stdin

2010-03-01 Thread Joseph L. Casale
Hi, I should state first I don't have the luxury of using Perl often and am super rusty:) I have a script that sends snmp commands to a switch either by passing args directly or as stdin. It works when passing them directly, but fails when feeding them as stdin, which is ultimately the way it need