executing system call

2001-12-24 Thread Durga_Prasad
Placed At : BOM Durga Prasad@SATYAM 12/24/2001 09:51 AM The code should be as follows: $datestamp=localtime(); open (TEMP, ">>\/usr\/local\/$datestamp"); print TEMP ("$datestamp\n"); close TEMP; exit; This is correct for Unix. Changes for Win32 ar

RE: executing system call

2001-12-21 Thread Wagner-David
, December 21, 2001 16:27 To: [EMAIL PROTECTED] Subject: RE: executing system call > I believe you would be better off (again matter of > opinion) using timelocal like > > [SNIP] Aww... timelocal isn't in the Perl5 Pocket Reference - which Larry Wall says is perfect. I did manage

Re: executing system call

2001-12-21 Thread Curtis Poe
--- Scott Lutz <[EMAIL PROTECTED]> wrote: > I am trying to get the date to create a file named after the current > date. > ( running under win32 ) > > here is the code : > my $datestamp=`date`; > print "File name created : $datestamp\n"; 'date', on a Windows box, allows you to display or set t

RE: executing system call

2001-12-21 Thread Jonathan E. Paton
> I believe you would be better off (again matter of > opinion) using timelocal like > > [SNIP] Aww... timelocal isn't in the Perl5 Pocket Reference - which Larry Wall says is perfect. I did manage to find localtime, maybe that might do instead. :) Compare the documentation for timelocal and

Re: executing system call

2001-12-21 Thread Jonathan E. Paton
> I am trying to get the date to create a file named > after the current date. > ( running under win32 ) > > here is the code : > my $datestamp=`date`; > print "File name created : $datestamp\n"; Don't do that! The Win32 date command is interactive - it expects you to change the date. Beside

RE: executing system call

2001-12-21 Thread Wagner-David
1 dec 2001 the value 20011221. Wags ;) -Original Message- From: Scott Lutz [mailto:[EMAIL PROTECTED]] Sent: Friday, December 21, 2001 15:52 To: Beginners (E-mail) Subject: executing system call I am trying to get the date to create a file named after the current date. ( running under win32

executing system call

2001-12-21 Thread Scott Lutz
I am trying to get the date to create a file named after the current date. ( running under win32 ) here is the code : my $datestamp=`date`; print "File name created : $datestamp\n"; gives me no output. any ideas?? Scott Lutz technical support Pacific Online http://www.paconline.net -- To