On Tue, Jul 22, 2008 at 05:06:22PM -0400, Fulton, David wrote: > As Marc broke down the sed line I will break down the line above, the # > character is indeed a comment character, but only to PERL. PERL is not > what tries to load the file initially, the shell tries to load the file > as a compiled program(like /bin/ls is the compiled program that lists > the files in a directory: I ran this on my nagios server as an example):
<nit> The actual interpretation of a sh-bang line is usually done by the general loader, which is to say exec(3) (I think that's the distinction between exec(2) and exec(3)); if the sh-bang line doesn't call a shell, one is not involved. </nit> But I suppose you may have meant "the interactive shell you're talking to"... Cheers, -- jra -- Jay R. Ashworth Baylink [EMAIL PROTECTED] Designer The Things I Think RFC 2100 Ashworth & Associates http://baylink.pitas.com '87 e24 St Petersburg FL USA http://photo.imageinc.us +1 727 647 1274 Those who cast the vote decide nothing. Those who count the vote decide everything. -- (Josef Stalin) ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
