Solved

uname -a versus uname --a

Posted on 2013-01-16
2
352 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Fine Tune your automatic Updates for Ubuntu / Debian
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

911 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

22 Experts available now in Live!

Get 1:1 Help Now