You could try either of these commands:
nohup perl-script &
or
at now + 1 minute
perl-script
^D
(Apparently "at teatime" is legal too, but not useful in this instance :-)
Gary W. MacDonald
-----Original Message-----
From: PerlWin32 [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 02, 2000 12:33 PM
To: 'Win32 Perl Admin ActiveState LS (E-mail)'
Subject: Run in background
Hi
Sorry to ask this on win32 perl list.
I have this script (below) I use on NT but i want to use this on Linux, on
NT I am logged in
and execute the script then minimize it - I then Lock the server. It then
loops through every 60 seconds and continues.
How can I do this on Linux - I SSH(Telnet) in execute the perl script but
then log out, how can I run this below
in the background being able to logout of the telnet session after it is
started and the script continues.
Thanks
Tony
PS I have looked for an answer
#!/usr/bin/perl -w
use strict;
START:;
my $notfound = 1;
while ($notfound) {
my @files = glob "*.txt";
for (@files) {
$notfound = 0;
system("mv *.txt /root/dns/");
}
sleep(60) if $notfound;
}
goto START;
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin