Hi all,
Apologies if this topic has turned up before.
Our firewall can stream application data upon establishing
a secure connection. Ie. on the following:
ssh <firewall> -l <username>
data will automatically be streamed (it is realtime
statistics for a server) to the connector's shell.
I'd like to establish such a connection without maintaining
a shell (simply redirect the output to a file, for example).
Two thoughts were to:
(i) accomplish this via cron, but I'm running into
the "Pseudo-terminal will not be allocated because stdin is
not a terminal" problem. I've tried forcing pseudo-tty
allocation using the -t flag, but have had no luck.
(ii) nohup the ssh process from a shell, but the connection
dies with the shell.
Thanks in advance for any advice/help.
Dan