LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 08-04-2008, 09:49 AM   #1
raghu123
Member
 
Registered: May 2008
Posts: 34

Rep: Reputation: 15
running a shell script which invokes another shell program!!!


Hi to all,

i hav a program called DaliLite to be run on 6o proteins.......
the syntax s Dalilite -pairwise pdb1 pdb2
so hav to generate a script for runnin Dalilite foe all 60 vs 60 entries.....

I knw i hav to tak the contents of my input file to an array and then finally say $i $j........but i need $j > $i only to be run.....
for eq.
DAlilite -pairwise pdb5 pdb55 etc.
i don want pdb5 pdb5 or pdb5 pdb3 etc.....

KIndly help this out........
 
Old 08-04-2008, 10:10 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,561
Blog Entries: 54

Rep: Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927Reputation: 2927
Something like 'for ((i=1;i<55;i++)); do Dalilite -pairwise pdb$i pdb$[$i+1]; done'?

[EDIT]Soz. Posted too soon. Needs something wrapped around that. Maybe something like 'for ((i=1;i<61;i++)); do for ((n=1;n<61;n++)); do [ $i -ne $n -a $i -le $n ] && Dalilite -pairwise pdb$i pdb$n; done; done'?[/EDIT]

Last edited by unSpawn; 08-04-2008 at 10:18 AM.
 
  


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
Shell script to start another program, if not running. cooljai Linux - Software 13 03-13-2012 05:39 AM
running a C program from shell script jkeertir Linux - Newbie 3 05-19-2008 06:05 AM
Running shell script within a C or C++ program Quantum0726 Programming 2 06-15-2005 10:14 PM
running a program from shell script Suinatsa Programming 10 04-14-2005 12:25 PM
c/c++ running a shell script? thermalpants Programming 3 05-12-2002 12:41 PM


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