tropicalisland
MIS
Hi,
I have these lines in perl script:
$filename = "patches" . time . ".html";
$html_file = "/tmp/" . $filename;
Now, I want to append a hostname to the $html_file. I did as follows:
$machine = system("/usr/bin/hostname"
;
$html_machine = "/tmp/" . $machine;
system("/usr/bin/mv","$html_file","$html_machine"
;
But it does not work.
I am new to perl.
Thanks for any help
I have these lines in perl script:
$filename = "patches" . time . ".html";
$html_file = "/tmp/" . $filename;
Now, I want to append a hostname to the $html_file. I did as follows:
$machine = system("/usr/bin/hostname"
$html_machine = "/tmp/" . $machine;
system("/usr/bin/mv","$html_file","$html_machine"
But it does not work.
I am new to perl.
Thanks for any help