Friday, November 30, 2007

running xspec as a shell

John Baker just came up with a way of running xspec which hadn't occurred to me. Create a file of xspec commands with the first line as

#!/path-to-executable/xspec

This has the advantage that arguments can be used eg

cat > testscript.xcm
#!/path-to-executable/xspec
data $argv
^D

chmod +x testscript.xcm

testscript.xcm file.pha

No comments: