dru145 has asked for the wisdom of the Perl Monks concerning the following question:
Thanks,#!/usr/bin/perl -w use strict; my $date = system("date +%x_%T"); open (FILE, ">>output.txt") or die "Can't open output.txt\n"; print FILE "$date Script worked correctly\n"; close (FILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting The Date Command to Redirect to File
by japhy (Canon) on Nov 22, 2002 at 16:29 UTC | |
|
Re: Getting The Date Command to Redirect to File
by fglock (Vicar) on Nov 22, 2002 at 16:26 UTC | |
|
Re: Getting The Date Command to Redirect to File
by vek (Prior) on Nov 22, 2002 at 16:30 UTC | |
|
Re: Getting The Date Command to Redirect to File
by dru145 (Friar) on Nov 22, 2002 at 16:52 UTC |