Below follow two examples of scripts, one using a command line parameter that is used to pass the object name through, and one script that does not use a command line parameter.
If the following script were in a file called myscript.csh, than one would invoke it by typing
> chmod 755 myscript.csh > myscript.csh NGC43210on the command line. The CHMOD routine has to be run only once. The script makes BVRI exposures and can be used when target acquisition and guiding have been accomplished.
#!/bin/csh # When passing parameters, the line above is essential, # is NOT a comment, and should be the first line in the file !!! # filter B # move the filter wheel run 40 "$1 b-band" # expose 40 sec filter V # move the filter wheel run 30 "$1 v-band" # expose 30 sec filter R # move the filter wheel run 20 "$1 r-band" # expose 20 sec filter I # move the filter wheel run 20 "$1 i-band" # expose 20 sec echo "READY" beep # ring the bell to warn you #
If the following script were in a file called myscript.csh, than one would invoke it by typing
> chmod 755 myscript.csh > myscript.cshon the command line.
# filter B # move the filter wheel run 40 "NGC43210 b-band" # expose 40 sec filter V # move the filter wheel run 30 "NGC43210 v-band" # expose 30 sec filter R # move the filter wheel run 20 "NGC43210 r-band" # expose 20 sec filter I # move the filter wheel run 20 "NGC43210 i-band" # expose 20 sec echo "READY" beep # ring the bell to warn you #