Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
efaref
on April 24, 2017
|
parent
|
context
|
favorite
| on:
How SSH got port number 22
You could quite easily write a script that does this:
#!/bin/sh cd $1 shift exec "$@"
It's a shame "in" is a reserved word, because that'd be a good name for it. Maybe "cde" for "cd-exec":
tar c files | ssh dest cde /some/dir tar x
apk17
on April 24, 2017
[–]
Mine is called cdx and includes 'env' functionality and a bit more. (
https://github.com/apk/c-utils/blob/master/aenv.c
)
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: