[gridengine users] [SGE-discuss] [SGE] Does SGE filter the reboot command
mail at jdborg.com
Thu Sep 5 12:45:43 UTC 2013
My bash script is:
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.
Joseph David Borġ
On 5 September 2013 13:35, Reuti <reuti at staff.uni-marburg.de> 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 <reuti at staff.uni-marburg.de> 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
> > > SGE-discuss at liv.ac.uk
> > > https://arc.liv.ac.uk/mailman/listinfo/sge-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the users