Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Sunday, February 27, 2011

qsub error - /bin/sh :no such file or directory

I was working with intel MTL Linux cluster recently and ran into this error. I had a shell script that would run another shell script which in turn runs my executable files. I created a script called batchjob to run my shell script.

Invariably, it kept throwing error at me. It said bin/sh no such file or directory. I took me a while to figure out what was wrong. In my first script I used something like
sh exe.sh args1 args2
There is one issue with this. The file exe.sh is under a folder called project and the batch server does not know the location. So the first change was to add the directory path. So it became:
sh $HOME/project/exe.sh args1 args2
Although, it did help the program still had errors. I was passing a data file as input to my program as args1. I had to do apply the same trick there too.
sh $HOME/project/exe.sh $HOME/project/data/exe.dat args2
The other change I made was to remove the line #!bin/sh, you don't have to do that if you are sure the script runs without qsub.

Another issue was to set the compiler variables. So I added the following command:
source /opt/intel/bin/iccvars.sh intel64
 After these changes the script runs just fine. Hope this will help someone.

Wednesday, January 12, 2011

No upgrade option in Update Manager in Ubuntu 9.04

While working on a project recently, I had a need to upgrade to the latest version of Ubuntu. I followed the following steps mentioned at the Ubuntu help page.
  • Start System/Administration/Update Manager.
  • Click the Check button to check for new updates.
  • If there are any updates to install, use the Install Updates button to install them, and press Check again after that is complete.
  • A message will appear informing you of the availability of the new release.
  • Click Upgrade.
  • Follow the on-screen instructions.

Saturday, July 31, 2010

No sound in SUSE Linux

It took me 1 hour to fix this problem. I hope this will come handy to you. To fix this issue you need to have the superuser/root access to your system. Because the file which needs be changed is a read only if you are not the super user.

Let us see what solves this issue:

If you are a new user follow the commands. If you arean advanced user pardon the details.

1) xx:~>su
On the prompt Password: enter your password

2)your su username:~> vi /etc/modprobe.d/sound

This will open the file using vi. If you are not comfortable with vi use any of the text editors.
press "dd" and this will delete all the lines.
Now press "i" and type following lines.

options snd slots=snd-hda-intel
options snd-hda-intel enable_msi=1 model=hp-m4
alias snd-card-0 snd-hda-intel

Try your sound now. Chances are more that this will work now.