Eu estou tentando usar um programa por SSH, que eu compilei, chamado de a.out, mas toda vez que eu desconecto da conta, ele para de rodar, apesar de eu usar o nohup. O a.out não escreve nada na tela, só quando termina escreve um arquivo final.dat.
Um exemplo de como rodei:
login as: lucas
Using keyboard-interactive authentication.
Password:
Access denied
Using keyboard-interactive authentication.
Password:
Access denied
Using keyboard-interactive authentication.
Password:
Last login: Thu Jan 6 06:47:14 2011 from 187.84.77.68
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.2.1-RELEASE (KERNEL1) #1: Sun Mar 28 15:07:57 BRT 2004
Welcome to FreeBSD!
Before seeking technical support, please use the following resources:
o Security advisories and updated errata information for all releases are
at http://www.FreeBSD.org/releases/ - always consult the ERRATA section
for your release first as it's updated frequently.
o The Handbook and FAQ documents are at http://www.FreeBSD.org/ and,
along with the mailing lists, can be searched by going to
http://www.FreeBSD.org/search/. If the doc distribution has
been installed, they're also available formatted in /usr/share/doc.
If you still have a question or problem, please take the output of
`uname -a', along with any relevant error messages, and email it
as a question to the questions@FreeBSD.org mailing list. If you are
unfamiliar with FreeBSD's directory layout, please refer to the hier(7)
manual page. If you are not familiar with manual pages, type `man man'.
You may also use sysinstall(8) to re-enter the installation and
configuration utility. Edit /etc/motd to change this login announcement.
\h{\u}:\w:\#\$ ssh 192.168.1.86
lucas@192.168.1.86's password:
Linux sonic1 2.6.32-27-generic #49-Ubuntu SMP Thu Dec 2 00:51:09 UTC 2010 x86_64 GNU/Linux
Ubuntu 10.04.1 LTS
Welcome to Ubuntu!
* Documentation: https://help.ubuntu.com/
Last login: Thu Jan 6 06:53:01 2011 from dec.spin.df.ufpe.br
lucas@sonic1:~$ exit
logout
Connection to 192.168.1.86 closed.
\h{\u}:\w:\#\$ ssh 192.168.1.86
lucas@192.168.1.86's password:
Permission denied, please try again.
lucas@192.168.1.86's password:
Linux sonic1 2.6.32-27-generic #49-Ubuntu SMP Thu Dec 2 00:51:09 UTC 2010 x86_64
Ubuntu 10.04.1 LTS
Welcome to Ubuntu!
* Documentation: https://help.ubuntu.com/
Last login: Thu Jan 6 09:58:49 2011 from dec.spin.df.ufpe.br
lucas@sonic1:~$ nohup ./a.out&
[1] 9627
lucas@sonic1:~$ nohup: ignoring input and appending output to `nohup.out'
lucas@sonic1:~$ ps
PID TTY TIME CMD
9607 pts/1 00:00:00 bash
9627 pts/1 00:00:56 a.out
9630 pts/1 00:00:00 ps
lucas@sonic1:~$ exit
logout
Connection to 192.168.1.86 closed.
Estou usando o Putty em um Windows XP