Search String: Display: Description: Sort:

Results:

References: [ +subject:/^(?:^\s*(re|sv|fwd|fw)[\[\]\d]*[:>-]+\s*)*\[Networker\]\s+Still\s+can\'t\s+do\s+this\s+in\s+Perl\s*$/: 11 ]

Total 11 documents matching your query.

1. [Networker] Still can't do this in Perl (score: 1)
Author: George Sinclair <George.Sinclair AT NOAA DOT GOV>
Date: Mon, 22 Nov 2004 10:58:16 -0500
I am still unable to perform the equivalent of the following simple Bourne shell script in Perl: /usr/sbin/nsradmin -s orion -i -<<EOF print type: NSR $1; name: $2 EOF I invoke this as: ./nsradmin.sh
/usr/local/webapp/mharc-adsm.org/html/Networker/2004-11/msg00254.html (14,200 bytes)

2. Re: [Networker] Still can't do this in Perl (score: 1)
Author: Byron Servies <bservies AT PACANG DOT COM>
Date: Mon, 22 Nov 2004 08:28:01 -0800
I am still unable to perform the equivalent of the following simple Bourne shell script in Perl: /usr/sbin/nsradmin -s orion -i -<<EOF print type: NSR $1; name: $2 EOF These are called "here documen
/usr/local/webapp/mharc-adsm.org/html/Networker/2004-11/msg00256.html (13,009 bytes)

3. Re: [Networker] Still can't do this in Perl (score: 1)
Author: Davina Treiber <Treiber AT HOTPOP DOT COM>
Date: Mon, 22 Nov 2004 16:54:12 +0000
I've tried all kinds of options involving '.', '-' characters. How can I do this? Seems so easy and yet so frustrating. It is fairly easy. You can use something similar to this example: open NSRADMIN
/usr/local/webapp/mharc-adsm.org/html/Networker/2004-11/msg00257.html (12,735 bytes)

4. Re: [Networker] Still can't do this in Perl (score: 1)
Author: Tim Mooney <mooney AT DOGBERT.CC.NDSU.NODAK DOT EDU>
Date: Mon, 22 Nov 2004 11:26:01 -0600
In regard to: [Networker] Still can't do this in Perl, George Sinclair said...: I am still unable to perform the equivalent of the following simple Bourne shell script in Perl: /usr/sbin/nsradmin -s
/usr/local/webapp/mharc-adsm.org/html/Networker/2004-11/msg00258.html (16,442 bytes)

5. Re: [Networker] Still can't do this in Perl (score: 1)
Author: Darren Dunham <ddunham AT TAOS DOT COM>
Date: Mon, 22 Nov 2004 11:42:14 -0800
Ouch. I think I suggested that without testing. That won't work at all. There, the command is passed on the command line, not as stdin. There's no 'print' at the beginning of the command. It should
/usr/local/webapp/mharc-adsm.org/html/Networker/2004-11/msg00260.html (14,340 bytes)

6. Re: [Networker] Still can't do this in Perl (score: 1)
Author: George Sinclair <George.Sinclair AT NOAA DOT GOV>
Date: Wed, 24 Nov 2004 10:13:35 -0500
Thanks for asking. Well, here's a very short draft of a script I came up with that avoids using temporary files or more advanced things like Open2 or Open3 modules. In my testing, I've been invoking
/usr/local/webapp/mharc-adsm.org/html/Networker/2004-11/msg00281.html (15,194 bytes)

7. Re: [Networker] Still can't do this in Perl (score: 1)
Author: Davina Treiber <Treiber AT HOTPOP DOT COM>
Date: Wed, 24 Nov 2004 15:19:29 +0000
George, Try a bit of sideways thinking. You are piping IN to the nsradmin command but losing the output. Isn't it more useful to put the input to nsradmin in a variable, then open the nsradmin comman
/usr/local/webapp/mharc-adsm.org/html/Networker/2004-11/msg00286.html (16,775 bytes)

8. Re: [Networker] Still can't do this in Perl (score: 1)
Author: Darren Dunham <ddunham AT TAOS DOT COM>
Date: Wed, 24 Nov 2004 10:11:53 -0800
Umm, that is *NOT* the way I would write that. You're forking off a child, but you give no indication that you're running multiple threads in here. Becuase you don't run a conditional on the $result
/usr/local/webapp/mharc-adsm.org/html/Networker/2004-11/msg00293.html (16,014 bytes)

9. Re: [Networker] Still can't do this in Perl (score: 1)
Author: George Sinclair <George.Sinclair AT NOAA DOT GOV>
Date: Fri, 26 Nov 2004 17:19:32 -0500
Okay, I tried suggested code, but with taint mode turned on as shown below and invoked as: 'script.pl name client'. I have a question, though, about how to NOT invoke shell (security) as discussed fu
/usr/local/webapp/mharc-adsm.org/html/Networker/2004-11/msg00317.html (19,749 bytes)

10. Re: [Networker] Still can't do this in Perl (score: 1)
Author: Darren Dunham <ddunham AT TAOS DOT COM>
Date: Fri, 26 Nov 2004 15:45:32 -0800
It happens here becuase you're passing the command and arguments as a single string, the shell is invoked to parse the bits. You can parse them yourself and pass them as an array rather than a strin
/usr/local/webapp/mharc-adsm.org/html/Networker/2004-11/msg00318.html (13,347 bytes)

11. Re: [Networker] Still can't do this in Perl (score: 1)
Author: George Sinclair <George.Sinclair AT NOAA DOT GOV>
Date: Fri, 26 Nov 2004 18:47:18 -0500
Good point. Guess it reached that quite some time back, though. Sorry to have protracted this. Thanks. George -- Note: To sign off this list, send a "signoff networker" command via email to listserv
/usr/local/webapp/mharc-adsm.org/html/Networker/2004-11/msg00319.html (14,377 bytes)


This search system is powered by Namazu