strftime
Michal Ludvig
mic na dcci.cz
Čtvrtek Červen 17 16:17:10 MEST 1999
Zdravim,
mam problem s funkci strftime. Mam nasledujici kus kodu:
****
#!/usr/bin/perl -w
use POSIX;
$s_command='/usr/bin/wget -c -O /data/in/25-880/in%y%m%d.log -o '.
'/data/in/25-880/in%y%m%d.log.$$.wg '.
'-t 5 -nv http://xxx.xxx-xxx-xxx.cz/in%y%m%d.log';
$command=strftime $s_command, gmtime(time);
print "$command\n";
****
Problem je, ze to funguje jenom trochu. Prvni dva in%y%m%d se v pohode
nahradi, ale ten posledni ne:
$ ./testik
/usr/bin/wget -c -O /data/in/25-880/in990617.log -o \
/data/in/25-880/in990617.log.$$.wg -t 5 -nv \
http://xxx.xxx-xxx-xxx.cz/in99˙żoü˙żW(
^^^^^^^^^^^^
Proc? Je snad strftime omezen na urcitou delku?
Dik
Michal Ludvig
Další informace o konferenci Perl