[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: wildcard and variable expansion

On Sun, Dec 25, 2005 at 11:31:07PM +0100, Lubos Vrbka wrote:
> export MASTER_HOST=`hostname`
> export FILE_PATH=some_file_path
> pbsdsh -- /bin/sh -c 'scp $FILE_PATH/file* $MASTER_HOST:'

Have you tried double quotes ?
pbsdsh -- /bin/sh -c "scp $FILE_PATH/file* $MASTER_HOST:"


"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

Reply to: