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


Reply via email to