Re: ssh/screen question - thread

2016-11-14 Thread bruce
hey guys... got a much simpler issue/question... I thought I had been running the remote cmd within the screen named session.. upon further testing.. I may not have actually been running it in the screen session.. perhaps outside of the session.. I think this works //--fire up the named scr

Re: ssh/screen question - thread

2016-11-14 Thread Gordon Messmer
On 11/14/2016 12:01 PM, Tom Horsley wrote: ssh goes to fantastic amounts of trouble to invent ridiculous file descriptors it can wait on till they close No it doesn't. ssh has a simple, well-defined behavior. It doesn't create non-standard (read "ridiculous") file descriptors. If you're ha

Re: ssh/screen question - thread

2016-11-14 Thread Tom Horsley
On Mon, 14 Nov 2016 14:13:48 -0500 bruce wrote: > It only detaches after the process completes!! ssh goes to fantastic amounts of trouble to invent ridiculous file descriptors it can wait on till they close (specifically to prevent you from exiting an ssh session and leaving anything running). I

Re: ssh/screen question - thread

2016-11-14 Thread Rick Stevens
On 11/14/2016 11:13 AM, bruce wrote: > Hey Rick... > > Morning dude! Thanks for the reply. > > I've tried a bunch of different combinations, including the one you > posted.. What seems to be happening, is that I can get it to run. The > tmp file is generated with the data but the session doesn't

Re: ssh/screen question - thread

2016-11-14 Thread bruce
Hey Rick... Morning dude! Thanks for the reply. I've tried a bunch of different combinations, including the one you posted.. What seems to be happening, is that I can get it to run. The tmp file is generated with the data but the session doesn't immeadiately detach. It only detaches after the pro

Re: ssh/screen question - thread

2016-11-14 Thread Rick Stevens
On 11/14/2016 03:01 AM, bruce wrote: > Hi Jakub > > So you're saying > ssh crawl_user@192.81.214.49 'screen -r "testname" -X "`ls -al /crawl_tmp/* > aa.tmp`" ' > is not the correct approach to running a remote cmd in a screen > session, and that the cmd wrapped in the backticks is

Re: ssh/screen question - thread

2016-11-14 Thread bruce
Hi Jakub So you're saying >>> ssh crawl_user@192.81.214.49 'screen -r "testname" -X "`ls -al >>> /crawl_tmp/* > aa.tmp`" ' is not the correct approach to running a remote cmd in a screen session, and that the cmd wrapped in the backticks is run on the local machine, not the remote machine???

Re: ssh/screen question - thread

2016-11-14 Thread Jakub Jelen
On 11/14/2016 02:17 AM, bruce wrote: I think I'm getting closer to an actual soln... ** Notice the backticks around the remote cmd to be run -without the ticks, the cmd doesn't appear to work ssh crawl_user@192.81.214.49 'screen -r "testname" -X "`nohup ls -al /crawl_tmp/* > aa.tmp`" ' ss

Re: ssh/screen question - thread

2016-11-13 Thread bruce
I think I'm getting closer to an actual soln... ** Notice the backticks around the remote cmd to be run -without the ticks, the cmd doesn't appear to work ssh crawl_user@192.81.214.49 'screen -r "testname" -X "`nohup ls -al /crawl_tmp/* > aa.tmp`" ' ssh crawl_user@192.81.214.49 'screen -r "

Re: ssh/screen question - thread

2016-11-13 Thread Patrick O'Callaghan
On Sun, 2016-11-13 at 10:09 -0500, bruce wrote: >  The goal, to be able to reattach to a remote screen session, and to > run a cmd in the remote screen session, and have the cmd return to the > calling term Maybe take a look at expect (dnf info expect). poc ___

Re: ssh/screen question - thread

2016-11-13 Thread bruce
Followup. So far lots of tests/no success: To refresh: The goal, to be able to reattach to a remote screen session, and to run a cmd in the remote screen session, and have the cmd return to the calling term Research/testing I should be able to create a remote screen session, and then reattach t

ssh/screen question - thread

2016-11-12 Thread bruce
Hey Ladies/Gents. This follows the other thread i posted over the last few weeks on devOPS stuff for managing groups of remote droplets/vms. My approach for now to implement clusterSSH as well as screen to be able to auto gen the remote droplets, and to be able to ssh into them to view status, as

Re: screen question?

2016-09-22 Thread jd1008
On 09/22/2016 03:13 PM, Pete Travis wrote: On Sep 22, 2016 12:49 PM, "bruce" > wrote: > > Hey guys. > > Trying to get my heads around something. I'm looking to automate a process. Basically, I want to kick off/initiate a number of processes on remote boxes. I've

Re: screen question?

2016-09-22 Thread Pete Travis
On Sep 22, 2016 12:49 PM, "bruce" wrote: > > Hey guys. > > Trying to get my heads around something. I'm looking to automate a process. Basically, I want to kick off/initiate a number of processes on remote boxes. I've looked at different online sites, but I'm missing something.. > > I can ssh into

Re: screen question?

2016-09-22 Thread Matthew Miller
On Thu, Sep 22, 2016 at 01:48:59PM -0400, bruce wrote: > ssh into the remote box > create the screen session (with a name I define) > access the screen session, and then fire up/start my process Do steps 2 and 3 need to be separate? -- Matthew Miller Fedora Project Leader _

Re: screen question?

2016-09-22 Thread fred roller
Pipe commands to ssh similar to dd | ssh . This in turn could maybe be cron'd? Just a thought. Fred On Sep 22, 2016 1:49 PM, "bruce" wrote: > Hey guys. > > Trying to get my heads around something. I'm looking to automate a > process. Basically, I want to kick off/initiate a number of processes

screen question?

2016-09-22 Thread bruce
Hey guys. Trying to get my heads around something. I'm looking to automate a process. Basically, I want to kick off/initiate a number of processes on remote boxes. I've looked at different online sites, but I'm missing something.. I can ssh into the box, trivial. I know I can create a "screen" pr