Again....all.
Within the same code....I want to see the output of my command on the screen... here is the code..
system(q!/nas/bin/nas_fs -list | egrep -v 'root|name' | awk '{print $6}'|sed '/^$/d' > /tmp/fs_list!);
open (FS_LIST, "fs_list");
while ( $fs = <FS_LIST> ) {
chomp ($fs) ;
print "$fs\n";
system(q!/nas/bin/fs_replicate -info $fs |egrep current_delta >> /tmp/delta!) ;
}
I do not get error nor see the output.File delta is empty !
any ideas ?
Thanks
Within the same code....I want to see the output of my command on the screen... here is the code..
system(q!/nas/bin/nas_fs -list | egrep -v 'root|name' | awk '{print $6}'|sed '/^$/d' > /tmp/fs_list!);
open (FS_LIST, "fs_list");
while ( $fs = <FS_LIST> ) {
chomp ($fs) ;
print "$fs\n";
system(q!/nas/bin/fs_replicate -info $fs |egrep current_delta >> /tmp/delta!) ;
}
I do not get error nor see the output.File delta is empty !
any ideas ?
Thanks