Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Loop is not working

by toolic (Bishop)
on Oct 03, 2018 at 19:27 UTC ( #1223485=note: print w/replies, xml ) Need Help??


in reply to Loop is not working

If your script hangs, I suspect it is because /usr/local/fsl/bin/feat hangs (whatever that is).

Observations:

  • You are discarding output from the backticks. For debugging purposes (to see if there is output): print `/usr/local/fsl/bin/feat Level1Run1_spec.fsf`;
  • cd .. will not change your directory. You need chdir.
  • The opendir does not really do anything in your code.
  • Customarily, the use lines appear at the top of a script.
  • $s=$s+1 is typically written as $s++
  • For other tips, refer to the Basic debugging checklist.

Replies are listed 'Best First'.
Re^2: Loop is not working
by ozdemmer (Novice) on Oct 04, 2018 at 01:48 UTC

    Thank you so much for taking your time to comment. I used the suggestion by the user named poj. All the best.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1223485]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2020-10-24 18:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (246 votes). Check out past polls.

    Notices?