TTY Permissions

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

 



Hey All,

Forgive me if you have seen this post on the RH9 list but I find this a rather
strange issue and would to find out what is at the heart of it.

I wrote a script to forward output to tty6 BUT it wouldn't let me until I added
the tty group to my user's permissions. However in RH8 I was able to just
simply forward the output with the '>' operator. Maybe my script will shed some
light on the subject.

     *********************Folding script***************************
#!/bin/sh
#chkconfig: 345 99 99
#description:  Start | Stop | Restart | (Check the) Status of the FAH client
source /etc/rc.d/init.d/functions
FAH="/home/USER/folding/FAH3Console-LinuxB.exe"
cd /home/USER/folding/ >/dev/null
RETVAL=1
case "$1" in
        start)
                echo -n "Starting Folding@Home client ... "
                su USER -c "$FAH >/dev/tty6 &"
                RETVAL=$?
                ;;
        stop)
                echo -n "Stopping Folding@Home client ... "
                killproc FAH3Console-LinuxB.exe
                RETVAL=$?
                ;;
        restart)
                $0 stop
                /usr/bin/sleep 1
                $0 start
                RETVAL=$?
                ;;
        status)
                status FAH3Console-LinuxB.exe
                RETVAL=$?
                ;;
        *)
                echo "Usage: $0 {start|stop|restart|status}"
                exit 1
                ;;
esac
exit $RETVAL


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux