Solved

uname -a versus uname --a

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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

707 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