Hello,
As one that's new to the Mac, and to the terminal, is there any way to run multiple commands via the terminal. I'd like to run a series of curl commnds and have the next one start once the previous one finishes. For example:
I've tried Applescript via Do script "curl ... " but it doesn't seem to work the way I want it to. In DOS, I'd write a batch file and execute it but I'm not sure what the UNIX or Apple equivalent would be.
Any help greatly appeciated. Thanks.
As one that's new to the Mac, and to the terminal, is there any way to run multiple commands via the terminal. I'd like to run a series of curl commnds and have the next one start once the previous one finishes. For example:
Code:
curl http://www.myhost.com/mydirectory/file.txt -o newname.txt
curl http://www.myhost.com/mydirectory/file2.txt -o newname2.txt
I've tried Applescript via Do script "curl ... " but it doesn't seem to work the way I want it to. In DOS, I'd write a batch file and execute it but I'm not sure what the UNIX or Apple equivalent would be.
Any help greatly appeciated. Thanks.