Mailinglist Archive: opensuse-de (1756 mails)

< Previous Next >
Re: Script von einem anderen Rechner aufrufen
  • From: David Haller <lists@xxxxxxxxxx>
  • Date: Sat, 28 Oct 2006 01:18:18 +0000 (UTC)
  • Message-id: <20061028011447.GA18758@xxxxxxxxxxxxxxxxxx>
Hallo,

Am Sam, 28 Okt 2006, Al Bogner schrieb:
>Am Freitag, 27. Oktober 2006 19:37 schrieb David Haller:
>
>> ssh user@host "test `stat -c '%a' public_html` -ne 755 \
>> && chmod 755 public_html'"
>
>stat: Aufruf von stat für ???public_html??? nicht möglich: Datei oder Verzeichnis
>nicht gefunden

Das hab ich einfach nur so uebernommen. s.u.

>stdin: is not a tty
>bash: -c: line 0: unexpected EOF while looking for matching `''
>bash: -c: line 1: syntax error: unexpected end of file
>
>Sind es Rechte an denen ich scheitere oder stimmt die Syntax nicht?

Da ist ein ' zuviel. Sowas muesstest du eigentlich inzwischen selber
sehen ;)

ssh user@host "test `stat -c '%a' ~/public_html` -ne 755 \
&& chmod 755 ~/public_html"

-dnh

--
panic("ocfs2 is very sorry to be fencing this system by panicing\n");
-- /usr/src/linux/fs/ocfs2/cluster/quorum.c

< Previous Next >
Follow Ups