CompuServe Thread

#Redirection

5 messages in this thread
#107590From: R. NiklosJun 3, 1990 11:10 PM
I make a little script file that will create files of each directory listing. How do I make the file execute by just typing the filename and not "execute filename"? Is there a way? R. Niklos
#107596From: Steve AhlstromJun 3, 1990 11:45 PM
Well, you could alias it or write an ARexx script (and use the script with WShell).
#107696From: Kevin HiselJun 4, 1990 10:11 PM
Sure. Move your script into the S: directory. Assuming your script file is named "Doit", CD to S: and type: Protect Doit +s That sets the "script" bit on the file. Assuming S: is part of your PATH, now whenever you type DOIT, the machine will er, uh, do it! No more need to EXECUTE DOIT.
#107730From: Kelly JordanJun 5, 1990 6:06 AM
If you are running under the AmigaDOS shell (as it came with 1.3), you just have to use the protect command to turn on the S bit. I think it is: Protect filename +s After that, just type filename from the AmigaDOS shell and the script will be executed. If you are running under a different shell, just ignore me! 73, Kelly
#107748From: R. NiklosJun 5, 1990 4:40 PM
Yes I am using AmigaDOS shell. Thanks for the reply. R. Niklos