LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-19-2008, 02:32 PM   #1
antonodnako
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
loading modules using script files?


It should be a silly question but here it is.

I wanted to load modules using script file:

#!/bin/csh
# load intel C compilers
module load mpich-intel
module list

During execution script echoes that the module was loaded. After execution the same command line "module list" shows that no modules are available. Why is that?
 
Old 06-19-2008, 02:39 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi,

And welcome to LQ!

Because you're spawning a sub-shell. And those modules,
I presume, are quite distinct from kernel modules, so
will terminate with the script.


Cheers,
Tink

P.S.: Try to avoid csh for scripting.
http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/

Last edited by Tinkster; 06-19-2008 at 02:41 PM.
 
  


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
device files are not created after manually loading the modules with modprobe r00tb33r Linux - Software 1 04-12-2007 06:58 PM
Loading modules error after loading compiled kernel td0l2 Linux - Newbie 12 07-28-2004 12:10 PM
modules are loading that shouldn't in my rc.modules thrice Slackware 3 05-11-2004 11:35 PM
loading modules w/o rc.modules e1000 Slackware 3 01-09-2004 03:57 AM
What files control loading of kernel modules? Rimmer Linux - General 1 05-04-2001 01:21 PM


All times are GMT -5. The time now is 03:13 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