0

I'm trying to reference a file in the command line, but I keep getting the 'No such file or directory' error. The system uses SSH for the protocol.

Examples (that cause error):

grep regex <SERVER1:/home/app/log/biglog

grep regex <SERVER1:home/app/log/biglog
Lance Roberts
  • 401
  • 3
  • 12
  • 29
  • ssh is not a network-filesystem, it's a remote shell – Javier Dec 17 '09 at 21:38
  • Javier: Not that what you said isn't true, but there is sshfs, which I would call a network filesystem. – Kyle Brandt Dec 17 '09 at 21:50
  • I guess you're trying to use the syntax seen in `rsync` examples. Generally, 'host:path' referencing is only supported by some applications and NOT the shell. Or maybe you're using the wrong shell that does not supoprt such a feature :) – kolypto Dec 17 '09 at 22:41

1 Answers1

2

umm i think you'll have better luck with this:

ssh <user>@<server> grep regex <path>

Zypher
  • 37,405
  • 5
  • 53
  • 95