I want to copy a script to a remote machine, execute it and return the result, after retuning the result the script has to be deleted from that remote server.
i want to run my file parser script and run it against the log file sitting on the remote machine and get the result, and delete my script on the remote server.
i tried to use the scp command, like:
scp login:password@host:file.txt file_backup.txt
i wanna know where to give the path of the log file on remote server in this line. and can i give this line inside my script itself.