bug-bash
[Top][All Lists]
Advanced

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

Re: ulimit and ssh?


From: Bob Proulx
Subject: Re: ulimit and ssh?
Date: Wed, 2 Sep 2009 12:18:02 -0600
User-agent: Mutt/1.5.18 (2008-05-17)

peter360 wrote:
> Can someone explain this to me?  Why am I not seeing correct results from
> ulimit after ssh into localhost?  Thanks!
> 
> $ ssh localhost bash -c 'ulimit -a'
> unlimited

You have insufficiently quoted your argument to ssh.  This is causing
bash not to get "ulimit -a" but to get "ulimit" "-a" instead.  You are
seeing the output of "ulimit".

Try this:

  ssh localhost "bash -c 'ulimit -a'"

And this:

  echo ulimit -a | ssh localhost bash

Bob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]