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.