How can i dynamically assign filename with -w option here ?
I am working on freebsd. I want to dynamically assign filename to the file created using -w option in this perl script. I have been using following method but to no avail.
$name = `date`;
system ("nstcpdump.sh -C 1 -w $name");
Can someone help me with this ?
try the multiple argument form of system:
you also may want to remove the spaces from the date string: