Does 'shutdown -r' instead work? I mean, 'reboot' always warns you to use shutdown when not run on a real terminal (which with qsub you wouldn't be).

Tina

On 05/09/13 13:45, Joe Borġ wrote:
My bash script is:

#!/bin/bash
/usr/bin/sudo /sbin/reboot

If I run that on the node itself, it reboots (no password needed).

If I merge the output, I get:

Warning: no access to tty (Bad file descriptor).
Thus no job control in this shell.

I believe sudo needs a tty, or it won't execute.



Regards,
Joseph David Borġ
http://www.jdborg.com


On 5 September 2013 13:35, Reuti <[email protected]
<mailto:[email protected]>> wrote:

    Am 05.09.2013 um 13:30 schrieb Joe Borġ:

     > No, but I'm running `sudo reboot`.  There is no output in the .e
    or .o, it seems as if the command is being filtered in bash.

    And you don't need to enter a password for `sudo` on the node? Does
    a `sudo id` work and gives the correct user information?

    -- Reuti


     > Wrapping in C++ system() and compiling works though.  So just
    wondering if the command is being stripped from bash?
     >
     >
     >
     > Regards,
     > Joseph David Borġ
     > http://www.jdborg.com
     >
     >
     > On 5 September 2013 12:21, Reuti <[email protected]
    <mailto:[email protected]>> wrote:
     > Hi,
     >
     > Am 05.09.2013 um 13:08 schrieb Joe Borġ:
     >
     > > If I submit a job with a reboot command at the end, the command
    doesn't seem to get run.  Is this expected?
     >
     > You are running the job under the root account?
     >
     > -- Reuti
     >
     >
     > >
     > > Regards,
     > > Joseph David Borġ
     > > _______________________________________________
     > > SGE-discuss mailing list
     > > [email protected] <mailto:[email protected]>
     > > https://arc.liv.ac.uk/mailman/listinfo/sge-discuss
     >
     >




_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users



--
Tina Friedrich, Computer Systems Administrator, Diamond Light Source Ltd
Diamond House, Harwell Science and Innovation Campus - 01235 77 8442

--
This e-mail and any attachments may contain confidential, copyright and or 
privileged material, and are for the use of the intended addressee only. If you 
are not the intended addressee or an authorised recipient of the addressee 
please notify us of receipt by returning the e-mail and do not use, copy, 
retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and 
Wales with its registered office at Diamond House, Harwell Science and 
Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom




_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to