Bugzilla – Attachment 829 Details for
Bug 984
Hangup to script while forced command ...
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
script running as forced-command
cmd (text/plain), 1.37 KB, created by
Damien Touraine
on 2005-02-18 20:10:40 AEDT
(
hide
)
Description:
script running as forced-command
Filename:
MIME Type:
Creator:
Damien Touraine
Created:
2005-02-18 20:10:40 AEDT
Size:
1.37 KB
patch
obsolete
>#!/bin/bash > >export PATH="$PATH:/usr/X11R6/bin" > >function ReadComputer() { > echo -n "Computer Name [console] : " > read computer > if [ -z "$computer" ] ; then > computer="hpc-c01" > fi >} > >PIDOF_X=`/sbin/pidof X` >PIDOF_WMAKER=`/sbin/pidof wmaker` >if [ -n "$PIDOF_X" ] ; then > if [ -n "$PIDOF_WMAKER" ] ; then > echo "X-window is operationnal" > else > echo "X-window is starting" > fi >else > echo "X-window not running" >fi > >echo "Make your choice : " >echo " 1 - run X-window in background" >echo " 2 - run X-window in an xterm" >echo " 3 - run remote control" >echo " 4 - shut-down X-window" >echo -n "? " >read choice > >case "$choice" in > 1) > if [ -n "$PIDOF_X" ] ; then > echo "WARNING : X-window seems to already running !" > fi > REMOTE_DISPLAY="" DISPLAY="" nohup bash -c /usr/X11R6/bin/startx < /dev/null >> $HOME/startx 2>&1 & > ;; > 2) > if [ -n "$PIDOF_X" ] ; then > echo "WARNING : X-window seems to already running !" > fi > ReadComputer > REMOTE_DISPLAY="$computer" DISPLAY="$computer:0.0" nohup xterm -T "X-window on $HOSTNAME" -e /usr/X11R6/bin/startx < /dev/null &> /dev/null & > ;; > 3) > ReadComputer > nohup RemoteX --master $computer --slave localhost < /dev/null >> $HOME/RemoteX 2>&1 & > ;; > 4) > if [ -z "$PIDOF_WMAKER" ] ; then > echo "WARNING : you can't shut down X-window as it is not operationnal" > else > killall -s TERM wmaker > fi > ;; > *) > echo "1, 2, 3 or 4 !" > ;; >esac > >sleep 1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 984
: 829