Solved

uname -a versus uname --a

Posted on 2013-01-16
2
341 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
2 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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é.
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.

746 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now