Ick.

If you want to shell program you should just program shell.  How about:

my $log="/tmp/ito.log";
open LOG, ">$log";
chomp (my $date = scalar localtime);
print LOG "[$date] Warning: some text\n";


On Tuesday, July 23, 2002, at 06:43 PM, kent ho wrote:

> Please help. I want to expand the "date" command in the echo command:
>
> Ex:
>
> $log="/tmp/ito.log"
> `echo Warning: some text > $log`
>
> I need to expand the "date" command somewhere in this echo command, 
> please
> show me how.
>
> Thanks,
>
> kent
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
// George Schlossnagle
// Principal Consultant
// OmniTI, Inc          http://www.omniti.com
// (c) 240.460.5234   (e) [EMAIL PROTECTED]
// 1024D/1100A5A0  1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0

Reply via email to