I have a ssh command as shown:
ssh remoteusr@<ip> "perl ./monitor.pl count_pages" | /monty/graphs/mail.pl
This command connects to remote machine and fetches data which gets continously streamed at screen(shown at terminal).
If I do Ctrl+Z and bg to put it into background.
But when i close the putty, it gets closed surprisingly.
I tried with nohup <command> &
But wonder how to provide password.