[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 398
  • Last Modified:

uname -a versus uname --a

Hi Folks,

On a fedora terminal window I can do uname -a and uname --a and both work fine.

When I run it through a SSH DLL that I paid a programmer to develop a couple of years back, only uname -a works.

Now I've just coded up a simple solution with Renci SSH (just a .net library for connecting via ssh and sending commands), and I'm finding that uname -a does not work, but uname --a does work.

So what might be the cause of this ? and is there perhaps a command I can issue that changes this so that my old scripts with just "uname -a" can still work ?

thanks
0
plq
Asked:
plq
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
it should be -a or --all  .... if --a worked, it's maybe some version that "allowed" this gracefully.
0
 
plqAuthor Commented:
oh I think its a "funny character" problem

My script had a CR LF at the end of the string, and that stopped uname -a<crlf> from working for some reason.. oops

thanks anyway
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now