Gentoo Forums
Gentoo Forums
Quick Search: in
*RESOLVED* shell script help
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
lavacano
Apprentice
Apprentice


Joined: 29 May 2005
Posts: 178
Location: Poulsbo, WA

PostPosted: Fri Sep 19, 2008 12:14 am    Post subject: *RESOLVED* shell script help Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum