Re: Check directory
From: Andreas Kahari (ak+usenet_at_freeshell.org)
Date: 09/28/03
- Next message: David Thompson: "Re: ksh93: How to avoid duplicates in history?"
- Previous message: Lars Rhensius: "Check directory"
- In reply to: Lars Rhensius: "Check directory"
- Next in thread: Ed Morton: "Re: Check directory"
- Reply: Ed Morton: "Re: Check directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 28 Sep 2003 15:39:53 +0000 (UTC)
In article <3F76D6FC.C0E0EB07@lido.net>, Lars Rhensius wrote:
> Hi,
> I want to check a directory on a 2nd server:
>
> ssh -l $USER $SERVER 'size=\`df ${BASEDIR} | grep domnotam | \`echo
> "awk '{print $5}'"``'
>
> but I only received error messages like: bash: `echo: command not found
Don't try to do everything remotely:
size=$(ssh -l $USER $SERVER df ${BASEDIR} | grep domnotam | awk '{print $5}')
BTW, isn't the fifth field of the ouput from df the capacity,
not the size?
-- Andreas Kähäri
- Next message: David Thompson: "Re: ksh93: How to avoid duplicates in history?"
- Previous message: Lars Rhensius: "Check directory"
- In reply to: Lars Rhensius: "Check directory"
- Next in thread: Ed Morton: "Re: Check directory"
- Reply: Ed Morton: "Re: Check directory"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|