I researched how to use ls and /boot to find the distribution I was connecting to but I couldn't find a solution. But I did find another way using python that seems to be working for me with my very early tests:
This does work in that it looks for the work
which means I can identify Red Hat Servers. Where I can see my code failing though is that my assumption is that if it's not Red Hat then it must be Ubuntu. I'm trying now to find a way to identify each type of distribution we have and specifically test for Red Hat (like I'm currently doing) or Ubuntu or even CentOS. Would you or someone else have a suggestion for me on how I can use my code to test for various types of Linux distributions?
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)
Are basic scripts in awk or bash or perl or other shell scripting languages the same in RHEL red hat as ubuntu? (1 Reply)
Discussion started by: cmccabe
1 Replies
LEARN ABOUT DEBIAN
rhn_check
RHN_CHECK(8) Red Hat, Inc. RHN_CHECK(8)NAME
rhn_check - Check for and execute queued actions on RHN.
SYNOPSIS
rhn_check [options]
DESCRIPTION
rhn_check is a client program that connects to Red Hat Network (or a Red Hat Network Satellite) and receives queued actions for this par-
ticular system. After receiving the actions, rhn_check will then process them, and return the results to Red Hat Network.
OPTIONS -v, --verbose
Increase the debugging output.
--proxy=PROXY
Specify an http proxy to use.
--proxyUser=PROXYUSER
Specify a username to use for an authenticated proxy. This option must be used in conjunction with proxyPassword.
--proxyPassword=PROXYPASSWORD
Specify a password to use for an authenticated proxy. This option must be used in conjunction with proxyUser.
--version
Show the program's version number and exit.
-h, --help
Show a help message and exit.
FILES
/etc/sysconfig/rhn/systemid
The digital server ID for this machine if the system has been registered onto Red Hat Network. This file does not exist otherwise.
/etc/sysconfig/rhn/up2date
The common configuration file used by RHN client programs.
SEE ALSO rhn_register(8), rhnreg_ks(8), rhnsd(8), rhn-profile-sync(8), rhnplugin(8), up2date(5).
AUTHORS
See the AUTHORS file included with this software.
This manual page was written by James Bowes <jbowes@redhat.com>
BUGS
Report bugs to <http://bugzilla.redhat.com>.
COPYRIGHT
Copyright (C) 1999-2010 Red Hat, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
Linux 2010 August 30 RHN_CHECK(8)