lavacano Apprentice


Joined: 29 May 2005 Posts: 178 Location: Poulsbo, WA
|
Posted: Fri Sep 19, 2008 12:14 am Post subject: *RESOLVED* shell script help |
|
|
| Code: | #!/bin/sh
# Execute X on a high display port (modify if needed)
X :3 -ac -terminate &
# Make the process have more priority (-1 because CFS might barf if higher)
renice -1 -p `ps ax | grep "X :3 -ac -terminate" | grep -v grep | cut -c1-5`
# Change Directory to WoW installation
cd "/home/chadwick/.wine/drive_c/Program Files/World of Warcraft"
# Wait a little then execute wine (modify for your executable `which wine` could replace /usr/bin/Wow.exe)
sleep 2 && DISPLAY=:3 /usr/bin/wine Wow.exe -opengl &
# Wait a little then make the process have more priority (-1 because CFS might barf if higher)
sleep 2
renice -1 -p `ps ax | grep Wow.exe | grep -v grep | cut -c1-5`
renice -1 -p `ps ax | grep wineserver | grep -v grep | cut -c1-5` |
I can execute this fine from gnome but if i execute in a tty it floods with returns (./WoW.sh press return and the tty repeats the return key)
is there a simple solution? I'm gonna try to add a sleep before executing X maybe that will work.
--yep it worked _________________ Sincerely,
Chadwick Ferguson |
|