LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 10-30-2009, 09:34 AM   #1
cliffyao
LQ Newbie
 
Registered: Oct 2009
Posts: 27

Rep: Reputation: 15
Question about qsub


Hi, everybody

I have to use multiple nodes for a project now. I was told that I can use qsub. I tried qsub to run a shell script:

qsub bash my.sh

It returned an error as below:

SGE jobs cannot run under /home... please use /data or /datafc

Then, I went back to check our internal website. It says:

###########################################
Before using SGE, execute the following:

./opt/sge/default/common/settings.sh

This sets up the environment variables needed by SGE. You should put this in your .bashrc or .bash_profile in your home directory.
############################################

So, I ran ./opt/sge/default/common/settings.sh. It returned nothing. Then, I tried to find .bash_profile in my home directory and got this"

$ locate .bash_profile
warning: locate: warning: database /var/lib/slocate/slocate.db' is more than 8 days old
/etc/skel/.bash_profile
/usr/local/RepeatMasker-oldversion/.bash_profile
/usr/local/RepeatMasker-oldversion/.bash_profile~

I have no idea about how and where to put the settings.sh in my .bash_profile file.

Can anybody help me on this? Thanks very much.
 
Old 10-31-2009, 02:08 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
It's possible that "locate" isn't searching the /home filesystem - I know our systems have a similar setup.

Anyway, have you actually looked in your home directory for .bashrc or .bash_profile (just do an "ls -a")? If neither exist, it's ok to create them. You could just put it in your .bashrc and then source your .bashrc by .bash_profile (i.e. put ". ~/.bashrc" in ~/.bash_profile).
 
  


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
linux distro question & mysql install question natalie.aloi Linux - Newbie 5 07-19-2009 08:28 PM
Question, Apples Contribution to Open Source + MacOs file structure question Higgy3k Other *NIX 5 07-25-2005 04:23 AM
Not your regular GRUB question - just a short question for a fried MBR!! ziphem Linux - General 3 01-31-2005 01:51 PM
Question 1 Firewall Log Question 2 Network Monitor Soulful93 Linux - Networking 4 08-04-2004 11:05 PM
login prompt question & kde scheme question JustinCoyan Slackware 2 06-09-2004 02:02 PM


All times are GMT -5. The time now is 08:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration