Reputation: 41
Can I make a call to scp
now that will execute some time in the future? For example, I want to wait for some code to finish executing on remote and to then transfer the log file to local. I don't necessarily have access to remote at all times.
EDIT: scp
requires a passphrase.
Upvotes: 2
Views: 192
Reputation: 1539
If you want to run any command in the future, use the at command after your scp command:
at [-m][-f file][-q queuename] timespec
scp [[user@]host1:]file1 ... [[user@]host2:]file2
Where timespec is a specified date or time.
It will not work if you need a passphrase for scp though.
Upvotes: 1