We use a variety of platforms, so we often need to identify the one on which we are working. Here is a sampling showing the use of:
GNU script config.guess,
file /etc/issue,
standard *nix command uname,
our local code version
Our code version is really for displaying versions of commands and scripts, but we found it convenient to identify the OS as an option as well as displaying a code version. We make use of uname for a number of elements in the display, but AIX and macOS, for example, need special processing. The code is probably not completely general, but the design it has suited our variety of OSs quite well. However, while the call to it is a single-line, the devil in the details requires a lot of extra code, and is, most emphatically, not a single-line.
Some details for config.guess:
Best wishes ... cheers, drl
i would like to make a shell script (red hat 9 cmd line only)
to telnet to my local isp's webmail server on port 25 and send it commands
such as helo :) help would be much appreciated, and i found no posts similar that answered my question... the closest i've gotten to an answer from about 8... (3 Replies)
Hello,
I wanted to simple command to encrypt a file. Using google I got a command "crypt". I could test it very well on Sun solaris. My red hat system says "command not found".Can you please tell me if I can find that package on the cd!!! (2 Replies)
Hi
I need to fetch a file using wget command.
In read Hat I have the file I need without any problem while in Ubuntu ( installed on a virtual image ) it doesn't work.
More precisely my wget need to fetch a page from a web site with secure authentication so teh syntax I am using is
wget... (7 Replies)
Gurus,
I want log in locally to my Lucid (10.04) workstation and have my code saved over the network on my samba account
At work, all developers have samba user ids and when we were running Red Hat, we went thru the following procedure to get setup.
* open a shell session to NFS server... (2 Replies)
I'm reading about debugging aids in bash and have come across the set command. It says in my little book that an addition to typing
set
you can also use them "on the command line when running a script..." and it lists this in a small table:
set -o option Command Line... (5 Replies)
Hi,
I have a unix script, and I have problem, where I work out the variable I need. But it will not excute the variable from the script ?
See my script below for details :
#!/bin/sh
ENVGRP=`hostname |cut -c1-3 | tr '' ''`
ENVINST=${ENVGRP}`hostname -i |cut -d\. -f 4`
echo... (4 Replies)
Have problem to send email from command line according to the posts like this one:
To have the ability to send email from the command line, you will need to install the mailutils and postfix packages with the following commands.
apt-get install mailutils
apt-get install postfix
Now... (1 Reply)