I have SSH to a server and have a syslog at usr/local. I am using the command
tail -f syslog.log | grep fps
and want to save the output of it to a file.
I have tried to SCP as below
% scp [email protected]:/usr/local/syslog.log ~/Desktop/a-file.txt
but got as
-sh: /root: Is a directory
Can anyone please help me out? additionally my ultimate aim if to read the FPS values from the file through selenium. Or is it possible to read the FPS values directly after the grep command. any suggestion would be great. Many thanks in advance.
ssh remoteserver tail -f /path/to/syslog.log | grep fps > localfile? I don't know selenium and can't comment on the last paragraph.which scporwhereis scp?