I am writing a shell script where I have to delete a file on a remote machine via a shell script.
Manual workflow:
- Log on to remote machine:
ssh [email protected]
- At the remote machine (
domain
), type the following commandscd ./some/where rm some_file.war
How should I accomplish that task in a script?