View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

If a task is a script or executable?

Andrew Staunton wrote on Nov 28, 2010

Can anyone tell me what is the easiest way to find out if a task is a script file or an executable program? ie. is it possible to bring up a list of all tasks that are script files?

I understand "help <taskname> option=source" will bring up the script file (if it is a script task), however that seems like a fairly hit and miss way to check..

I mainly want to look at script tasks for study purposes.

Thanks

Andrew

Mike Fitzpatrick wrote on Nov 28, 2010

Scripts typically have ".cl" file extensions, so you can just browse the system for .cl files. A more automated way is e.g.

% cd $iraf
% find . -name \*.cl -print -exec egrep -e ^task {} \; | egrep -e "\.cl" 


and you'll get a list of all task declarations and the script source name.

Last post on Nov 28, 2010