lopes_andre Posted July 20, 2010 Share Posted July 20, 2010 Hi, I need to import a TXT file with INSERT's to a PostgreSQL Database, using the command "psql ...". But I need to do this in background, there is any way of doing this that the process will continue if I close the SSH client? Best Regards, Link to comment https://forums.phpfreaks.com/topic/208265-how-to-run-a-process-in-the-background-via-ssh/ Share on other sites More sharing options...
trq Posted July 20, 2010 Share Posted July 20, 2010 You'll want to take a look at the 'screen' command. You basically enter a screen # screen which will create a screen session and give you a prompt, you can then do whatever you like. To detach from the session hit Ctrl-d Ctrl-a, this will take you back to where you where before you entered the screen session. You can then exit from the shell. At any time come back, and type... # screen -d -r to re-attach to your session. Link to comment https://forums.phpfreaks.com/topic/208265-how-to-run-a-process-in-the-background-via-ssh/#findComment-1088488 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.