Re: remote process/questions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/08/2016 04:02 AM, bruce wrote:
> Hi.
> 
> Trying to get my head around what should be basic/trivial process.
> 
> I've got a remote VM. I can fire up a local term, and then ssh into
> the remote VM with no prob. I can then run the remote functions, all
> is good.
> 
> However, I'd really like to have some process on the local side, that
> would allow me to do all the above in a shell/prog process on the
> local side,
> 
> Psuedo Processes::
> -spin up the remoter term of user1@1.2.3.4
> -track the remote term/session - so I could "log into it" see what's
>   going on for the initiated processes"
> -perform some dir functions as user1 on the remote system
> -run appA  as user1 on 1.2.3.4 (long running)
> -run appB  as user1 on 1.2.3.4 (long running)
> -etc..
> -when the apps/processes are finished, shut down the "remote term"
> 
> I'd prefer to be able to do all of this, without actually having the
> "physical" local term be generated/displayed in the local desktop.
> 
> I'm going to be running a bunch of long running apps on the cloud, so
> I'm trying to walk through the appropriate process/approach to
> handling this.
> 
> Sites/Articles/thoughts are more than welcome.

1. Set up ssh keys so you don't need to use passwords between the
two systems (no interaction).

2. Launch your tasks on the remote VM using screen over ssh by doing
something like:

	ssh user1@1.2.3.4 screen -d -m -S firstsessionname "command you wish to
run on the VM"
	ssh user1@1.2.3.4 screen -d -m -S secondsessionname "second command you
wish to run on the VM"

3. If you want to check on the tasks, log into the VM via ssh
interactively and check the various screen sessions. I recommend setting
the screen session names via the "-S" option so they're easier to
differentiate.

That should do it. The items in step 2 could be done in a shell script
if you're lazy like me. :-)
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2        ICQ: 226437340           Yahoo: origrps2 -
-                                                                    -
-     The trouble with troubleshooting is that trouble sometimes     -
-                             shoots back.                           -
----------------------------------------------------------------------
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux