?
Solved

uname -a versus uname --a

Posted on 2013-01-16
2
Medium Priority
?
387 Views
Last Modified: 2013-01-16
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
Comment
Question by:plq
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2000 total points
ID: 38781884
it should be -a or --all  .... if --a worked, it's maybe some version that "allowed" this gracefully.
0
 
LVL 8

Author Comment

by:plq
ID: 38781988
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

More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question