Re: How can i make a perl program lauch another perl program that takes options



On 6/29/07, Alex Jamestin <alex.jamestin@xxxxxxxxx> wrote:
Sorry forgot about that.. I'm running it on FreeBSD/i386 accessed via.
a terminal prog.

I have a FreeBSD box handy, but I cannot reproduce your error. Do the
two scripts below work for you?

/home/cowens>uname -smr
FreeBSD 4.11-STABLE i386
/home/cowens>cat t.pl
#!/usr/bin/perl

system("perl f.pl foo bar baz") == 0
or die "perl blew up: $!";
/home/cowens>cat f.pl
#!/usr/bin/perl -l

print map { "[$_] " } @ARGV;
/home/cowens>perl t.pl
[foo] [bar] [baz]
.



Relevant Pages

  • Re: Idea for FreeBSD
    ... I started in FreeBSD and it will ... Even solaris still relies on rc scripts to exist. ... I think a drop-in command like "rcadm" (someone mentioned this as an idea, ...
    (freebsd-hackers)
  • Re: Items missing from the handbook and/or FAQs.
    ... > configuration is handled through ifconfig would have saved me some time. ... > would also have saved me reading through the rc scripts. ... > During setup you can create filesystems other than FreeBSD, ... > their own gdm startup scripts doesn't make much sense. ...
    (freebsd-questions)
  • Re: Suggestion: rename "killall" to "fkill", but wait five years to phase the new name in
    ... The only scripts I can think of are scripts ... killall is used for instance, ... Having a command that do the same thing what shutdownshould do doesn't seem to be the Unix way to do things. ... Mac OS X have the same killall as FreeBSD have. ...
    (freebsd-hackers)
  • Re: Idea for FreeBSD
    ... EnterpriseBSD project. ... There is commercial support for FreeBSD out there. ... Even solaris still relies on rc scripts to exist. ...
    (freebsd-hackers)
  • Re: [HEADS UP] perl symlinks in /usr/bin will be gone
    ... > will ONLY be true for FreeBSD 5.X and FreeBSD CURRENT; ... in practical terms this does not mean a one-time sweep at all. ... There is simply no realistic way to change all scripts to use ... servers, probably for all eternity, and face the screaming users ...
    (freebsd-stable)