hi,
I have writen a script that gets the date... It works fine on my windows2000 IIS server, but... The script must eventually run on a american server running on UNIX.
All I know is the following:
the perl-dir = /usr/bin/perl
the date-dir = /bin/date
What I need is the current date in DDMMYYYY
The script that works on IIS:
All I need to know is how I get the same result but on UNIX... How do I use the /bin/date dir??
Thanx,
math
I have writen a script that gets the date... It works fine on my windows2000 IIS server, but... The script must eventually run on a american server running on UNIX.
All I know is the following:
the perl-dir = /usr/bin/perl
the date-dir = /bin/date
What I need is the current date in DDMMYYYY
The script that works on IIS:
Code:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
$tmpdate = scalar localtime;
($wday, $mnth, $day, $hour, $year) = split(/ /,$date);
$date = join("",$day,$mnth,$year);
print "$date";
Thanx,
math