On Thu, Oct 03, 2013 at 01:20:09PM -0400, Brandon Allbery wrote: > > > > On Oct 3, 2013, at 12:23 PM, Ski Kacoroski <[email protected]> wrote: > > > `rm /var/spool/discoveryed/old/*`; > > > `mv /var/spool/discoveryed/*roster*.csv > > /var/spool/discoveryed/roster.prev`; > > > `mv /var/spool/discoveryed/*.csv /var/spool/discoveryed/old`; > > > > aaaaa > > Don't use `` that way. Use system. Really. (Not that this is likely to be > relevant, except insofar as you've ensured that you can't know if any of > those commands fail.)
If you need to delete files, I would look at unlink[1]. If you need to move files, rename[2] or File::Copy qw(move);. If you need to use FTP to transfer files, I would check CPAN for an FTP module[3]. If you can use SFTP instead, Net::SFTP[4] may be an option. [1]: perldoc -f unlink [2]: perldoc -f rename [3]: Net::FTP, http://search.cpan.org/~shay/libnet-1.23/Net/FTP.pm [4]: http://search.cpan.org/~dbrobins/Net-SFTP-0.10/lib/Net/SFTP.pm > > -- > brandon s allbery kf8nh sine nomine associates > [email protected] [email protected] > unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net -- Matt Okeson-Harlow http://technomage.net
signature.asc
Description: Digital signature
_______________________________________________ Discuss mailing list [email protected] https://lists.lopsa.org/cgi-bin/mailman/listinfo/discuss This list provided by the League of Professional System Administrators http://lopsa.org/
