Re: Remotely shutdown multiple PCs via script

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

 



On Fri, Dec 9, 2011 at 23:06, Doug Kuvaas <doug.kuvaas@xxxxxxxxx> wrote:
> I have actually tried ssh -t user@host "nohup /path/to/shutdownscript &" and
> it seemed to be doing the same thing....waiting for the shutdownscript to
> finish before moving to the next line.    I was expecting the nohup
> <command> & to immediately return back to the script and not wait for the
> command to complete.
>
> I seem to have it figured out now though.  I should have been using ssh -f
> instead of ssh -t for my script.  I also changed the nohup command so that
> it redirects all output to /dev/null.  That fixed the command not returning
> to the script issue that I was seeing.
>
> I also discovered that I forgot to turn of the RequireTTY default for
> sudoers, which was causing the script to work perfectly when I ran it
> locally on the machines, but when trying to call the scripts remotely made
> them appear to not run at all...they were running, the sudo command was just
> refusing to run without a controlling terminal.

I don't follow why all this fuss when you can simply run a screen
session on the server and it would be as if you are logged the whole
time without any interruption!

-- 
Suvayu

Open source is the future. It sets us free.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[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