in reply to Re: Cron and Expect.pm
in thread Cron and Expect.pm
Incidentally your script above is easy to write in Perl:
UPDATE: As pointed out by AM below, I was setting HOME twice. It makes more sense not to, so I've fixed that.#! /usr/bin/perl %ENV = ( LOGNAME => $ENV{LOGNAME}, TERM => "dumb", HOSTTYPE => "i386", PATH => "/usr/bin:/bin", HOME => $ENV{HOME}, SHELL => "/bin/sh", OSTYPE => "Linux", SHLVL => 1, _ => "/usr/bin/env", ); exec("bash", "-noprofile", "-norc", @ARGV);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Cron and Expect.pm
by Anonymous Monk on Nov 12, 2004 at 20:47 UTC | |
by Anonymous Monk on Nov 12, 2004 at 21:22 UTC |