LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-22-2005, 04:48 PM   #1
sly_guy69
LQ Newbie
 
Registered: Jan 2005
Distribution: ubuntu
Posts: 6

Rep: Reputation: 0
I need to make simple script.


Well, atleast it sounds simple enough. I have UT2K4 installed in Knoppix but for it to load you have to first type $export LD_PRELOAD=libGL.so.1 into the shell to load the open GL library. I would like to combine the two steps into one executable file that will load the Open Gl Library, then run UT2K4 immediatly after. Please enlighten lol
 
Old 01-22-2005, 04:56 PM   #2
MylesCLin
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Slack 9.1 with slackware-current packages...
Posts: 164

Rep: Reputation: 30
Code:
#!/bin/sh
export LD_PRELOAD=libGL.so.1
Game executable name
Try that, change the third line ot the name of the ut2k4 executable
 
Old 01-22-2005, 08:21 PM   #3
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
1) create a file called game.sh for ex
2) type in it :
#!/bin/sh
export LD_PRELOAD=libGL.so.1
./nameofthegame

3) save it

4) type : chmod +x game.sh --> to make it executable

5) if u want u could create a shortcut for it on the desktop

Last edited by heema; 01-22-2005 at 08:22 PM.
 
Old 01-22-2005, 09:13 PM   #4
sly_guy69
LQ Newbie
 
Registered: Jan 2005
Distribution: ubuntu
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by heema
1) create a file called game.sh for ex
2) type in it :
#!/bin/sh
export LD_PRELOAD=libGL.so.1
./nameofthegame

3) save it

4) type : chmod +x game.sh --> to make it executable

5) if u want u could create a shortcut for it on the desktop
Thanks, that did it perfect. The first time it didn't work, I typed in ./ut2004 when i only needed to type ut2004 in the 3rd line. I figured it out pretty quickly though. Thanks for the help!!!
 
Old 01-22-2005, 09:23 PM   #5
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
yeah sorry about that , as its late now so i got mistaken
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptables (with masq) troubleshooting, very simple script attached script and logs. xinu Linux - Networking 13 11-01-2007 05:19 AM
can i make a script or program make a phone call? nephish Linux - Software 2 08-15-2005 10:02 PM
How to make a simple addition in a shell script. philipina Programming 2 03-16-2004 05:38 AM
simple script hso_sof Linux - Software 2 08-25-2003 01:09 PM
Simple C Shell script is not so simple elconde Programming 2 09-17-2001 12:53 AM


All times are GMT -5. The time now is 05:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration