Advertisement

[x]
Attachment Details

timeout on time linux cluster

[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.3
I just happily discovered the "time" command on a linux cluster (see URL) for the computing
for life sciences cluster at san francisco state university.  i am doing some experiments running
a script called hybrid-select.pl that finds secondary structure of RNA but i will stop boring you
with those details.  in some literature, these types of folding algorithms are described as
being O(N^3) so i wanted to test this data.  the problem is, that the CCLS cluster is very
intolerant of terminals running for long enough for me to test my thoughts.  therefore i
tried to write a script that would save the output of time, to no avail.

here is a little illustrative unix command line output

[::begin clip::]

[kayve@ccls wet]$ ./first_test.bash &
[1] 644
[kayve@ccls wet]$
real    0m29.371s
user    0m29.222s
sys     0m0.073s

[1]+  Done                    ./first_test.bash
[kayve@ccls wet]$ cat data
cat: data: No such file or directory
[kayve@ccls wet]$ cat rundata
[kayve@ccls wet]$ cat data17804
seq17804.804 runtime data:

[kayve@ccls wet]$ ./first_test.bash &
[1] 6760
[kayve@ccls wet]$
real    0m29.631s
user    0m29.333s
sys     0m0.192s
Read from remote host ccls.research.sfsu.edu: Connection reset by peer
Connection to ccls.research.sfsu.edu closed.
[kayve@kv_bsd ~]$

[::end clip::]

i am trying to save that time data you see going to standard output above for a sequence
that has 804 base pairs (N=804) running for half a minute in real time. my goal is to push the
limit on a larger sequence to test the O(N^3) nature of the algorithm empircally.  this is
not possible with the way my terminals timeout.  i tried redirecting to stderr but that didn't
work.  here is another command line clip of my two scripts.  the filename convention i have
for the datafiles i generate from a genome wide 5'-UTR file with a total of over 32 000 sequences
is "seq(index).(length) so that below you will se my script running the hybrid-select.pl
on a filename seq17804.804 implying the data was taken from the 17804th sequence of the
32K sequences and the second script seq17611.7327 implying that the 17611th sequence
has 7327 base pairs.

[::clip::]

[kayve@ccls wet]$ cat first_test.bash ; cat time_test.bash
#! /bin/bash

time 2>rundata  hybrid-select.pl seq17804.804 > /dev/null
echo "seq17804.804 runtime data:" > data17804
cat rundata >> data17804
echo "${ran4}" >> data17804

#! /bin/bash

ran4=`time hybrid-select.pl seq17611.7327 > /dev/null`
echo "seq17611.7327 runtime data:" > data17611
echo "${ran4}" >> data17611

[kayve@ccls wet]$


[::end clip::]

an aside.. the >/dev/null is for getting rid of the output of the hybrid-select.pl script.
Related Solutions
Related Solutions
 
Loading Advertisement...
 

Rank: Wizard

Accepted Solution by duncan_roe:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Author Comment by kayvey:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Author Comment by kayvey:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
Loading Advertisement...
20080924-EE-VQP-41 - Hierarchy / EE_QW_2_20070628