On Fri, Oct 24, 2003 at 11:00:17AM +0100, Rus Foster wrote:

> base-2.05a$ ssh remotehost find /home -name .bash_history -exec grep foo
> {} \;
> find: missing argument to `-exec'
> 
> I've tried quoting it, escaping it..What am I doing wrong?

[EMAIL PROTECTED]:~$ ssh -l bss atsrvlx01  'find /home -name ".bash_history" -exec 
grep foo {}\;'
find: missing argument to `-exec'
[EMAIL PROTECTED]:~$ ssh -l bss atsrvlx01  'find /home -name ".bash_history" -exec 
grep foo {} \;'
grep: /home/bss/mailarchive_save/.bash_history: Permission denied
find: /home/bss/mailarchive_save/.ssh: Permission denied
grep: /home/bss/nagios.bak.new/.bash_history: Permission denied
find: /home/bss/nagios.bak.new/.ssh: Permission denied
grep: /home/bss/mailarchive_save_new/.bash_history: Permission denied
find: /home/bss/mailarchive_save_new/.ssh: Permission denied
[EMAIL PROTECTED]:~$

Is it like this in your case maybe?
(I added a space near the end between } and \ ... )


or like this:

[EMAIL PROTECTED]:~$ ssh -l bss atsrvlx01  find /home -name ".bash_history" -exec grep 
foo {} \;
find: missing argument to `-exec'
[EMAIL PROTECTED]:~$ ssh -l bss atsrvlx01  'find /home -name ".bash_history" -exec 
grep foo {} \;'
grep: /home/bss/mailarchive_save/.bash_history: Permission denied
find: /home/bss/mailarchive_save/.ssh: Permission denied
grep: /home/bss/nagios.bak.new/.bash_history: Permission denied
find: /home/bss/nagios.bak.new/.ssh: Permission denied
grep: /home/bss/mailarchive_save_new/.bash_history: Permission denied
find: /home/bss/mailarchive_save_new/.ssh: Permission denied
[EMAIL PROTECTED]:~$

?

HTH

charlie

-- 
Végh Károly -  System Engineer - UTA - TIS.SAS.BSS
Don't worry. Everything is getting nicely out of control.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to