LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-01-2005, 06:44 PM   #1
tbfirefox
Member
 
Registered: Jul 2004
Location: New Zealand
Distribution: SUSE Linux Professional 9.2
Posts: 30

Rep: Reputation: 15
Automatically cast 'export LD_ASSUME_KERNEL' before an app starts


Hi. I have one or two apps which I need to type 'export LD_ASSUME_KERNEL=2.4.21' before i execute the program. Is there anyway I can get KDE to execute this command automatically if I click on the program in the Menu or Desktop?

Thanks for your help
 
Old 02-01-2005, 08:59 PM   #2
archdev
Member
 
Registered: May 2004
Location: chicago and cincinnati
Distribution: fedora
Posts: 134

Rep: Reputation: 15
My installation of Maple needed export LD_ASSUME_KERNEL=2.4.1 to be called as well.

I just editied the script that starts it to include that line so I guess your fix could just be make a script in your ~/bin directory lets call it foo.sh

then chmod +x foo.sh

Then in foo.sh something like this could work:



Code:
#!/bin/sh    
export LD_ASSUME_KERNEL=2.4.1    
#then your program of interest here say  
/usr/local/foo/bin/bar
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
X starts up automatically & other problems kloss Debian 8 12-09-2005 12:17 AM
knode starts automatically?? attila_66 Linux - Newbie 1 10-22-2005 04:50 PM
Trying to export display automatically in Linux ? lab123 Linux - Networking 0 09-29-2005 08:33 AM
mozilla starts automatically bm1 Linux - Software 1 08-29-2004 06:10 AM
export LD_ASSUME_KERNEL=2.2.5?? ksoma Linux - Newbie 2 09-21-2003 04:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:20 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
Open Source Consulting | Domain Registration