R
Ross
hi everybody,
when i try to obtain the file name by setting:
$filename = $ARGV[0];
i found $ARGV[0] actually contains a duplicate filename, e.g.
/var/www/A11NRXXX.DIF//var/www/A11NRXXX.DIF
this problem only occurs (i.e. it works normally by directly typing abc.pl
in shell) when i use a shell script as:
#!/bin/sh
for F in `/bin/ls $1`;do
/usr/bin/perl /var/www/abc.pl $1/$F
done
exit 0;
any idea please?
when i try to obtain the file name by setting:
$filename = $ARGV[0];
i found $ARGV[0] actually contains a duplicate filename, e.g.
/var/www/A11NRXXX.DIF//var/www/A11NRXXX.DIF
this problem only occurs (i.e. it works normally by directly typing abc.pl
in shell) when i use a shell script as:
#!/bin/sh
for F in `/bin/ls $1`;do
/usr/bin/perl /var/www/abc.pl $1/$F
done
exit 0;
any idea please?