3 ms·
by ssh I meant this sort of thing: #!/bin/sh ssh remote "$*" invoked as follows (for example): ./ssh-remote.sh cat your-favorite-file.txt This w
by dnautics 7y ago
by ssh I meant this sort of thing:
#!/bin/sh
ssh remote "$*"
invoked as follows (for example):
./ssh-remote.sh cat your-favorite-file.txt
This works.
I was mistaken about su / sudo.
- floatingatoll 7y agoIf the file name is “your file name.txt”, or if any argument contains a space character, your use will fail.