I am looking to store my output from router commands to an external file
open(DATA,"+>>default_ve.txt") || die "Couldn't open file , $!"; while (1) { my $content = $rh->cmd('show system processes extensive | match rp +d'); print DATA "$content"; }}
I see the file is getting created, but it does not have content . -rw-rw-r-- 1 user others 0 Nov 20 18:44 default_ve.txt Please let me know what iam missing here
In reply to File operations by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |