Welcome to iraf.net Tuesday, May 21 2024 @ 10:26 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Simple scripting question
   
Gaba_p
 04/13/2009 09:17PM (Read 1777 times)  
++++-
Regular Member

Status: offline


Registered: 10/10/2008
Posts: 104
Hi,I've written a procedure script which uses the 'fields' task. I can't make it stop asking me to confirm the lines to be extracted. This is how the 'fields' parameters are set:fields.mode = 'hl'
fields.files = 'file1'
fields.fields = "1-2"
fields.lines = "1-5"
fields ('file2')Every time I'm required to confirm the "lines" parameter, even though it's already in the parameters.
It's a minor problem, but I'd really like to fix it, so the script won't stop and wait for confirmation.Thanks!Gabriel

 
Profile Email Website
 Quote
fitz
 04/13/2009 09:17PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
I think you mean it keeps prompting you for the 'fields' param?? If so, you can make this one parameter hidden by adding the line[code:1:c133d6db72]fields.fields.p_mode="h"[/code:1:c133d6db72]Or else just supply the param when you make the call, e.g.[code:1:c133d6db72]fields ("file2", "1-2") [/code:1:c133d6db72]-Mike

 
Profile Email
 Quote
Gaba_p
 04/13/2009 09:17PM  
++++-
Regular Member

Status: offline


Registered: 10/10/2008
Posts: 104
Yes, I meant the "fields" param.Thanks Mike!

 
Profile Email Website
 Quote
   
Content generated in: 0.09 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login