peschkaj has asked for the wisdom of the Perl Monks concerning the following question:
Although this is nothing revolutionary, I thought that I might as well post it because it runs under -w, as far as I am aware. I attempted to launch gqcam from the program with: `gqcam &` but that generated error after error for the cam program. How could I get perl to call gqcam and not spew forth masses of errors to gqcam?#!/usr/bin/perl -w use Net::FTP; my $hostname; my $username; my $password; my $boink; my $directory; my $filename; my $ftp; my $sleeptime; $boink = 0; `gqcam &`; while ($boink == 0) { $ftp = Net::FTP->new($hostname) or die "can't connect: $@\n"; $ftp->login($username,$password) or die "can't login: $@\n"; $ftp->cwd($directory) or die "can't cwd to $directory\n"; $ftp->type(binary) or die "cannot change type to binary\n"; $ftp->put($filename) or die "cannot put $filename\n"; $ftp->close; sleep($sleeptime); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Slew or error messages
by runrig (Abbot) on Aug 08, 2001 at 00:20 UTC | |
by peschkaj (Pilgrim) on Aug 08, 2001 at 00:36 UTC | |
by runrig (Abbot) on Aug 08, 2001 at 00:59 UTC | |
by peschkaj (Pilgrim) on Aug 08, 2001 at 02:37 UTC | |
by runrig (Abbot) on Aug 08, 2001 at 02:46 UTC | |
|