Help with TTY permissions

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

 



Hi everyone,

I am really baffled as to why a script of mine won't work. I used it with RH
8.0 and now when I try it with 9.0 my boot.log shows a /dev/tty12 permission
denied error. I have NO idea why I would be getting this. The script is as
follows:

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


Please some guidence on this will be GREATLY appreciated,
Ryan

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux