echo "put file.txt" | sftp -b - servername &
If I understand you correctly.
سؤال
المحلول 2
echo "put file.txt" | sftp -b - servername &
If I understand you correctly.
نصائح أخرى
echo "put file.txt" | sftp username@hostname
ctrl-z
bg
disown
Nohup doesn't work with sftp, if you close the shell , it will kill the process. Just put the command to run in crontab, process will continue, even you close all shells.