bakunin - That is the excat change I am trying to avoid as it involves many script changes.
Our scripts have something like
Now when this script is called in command line, its like
inside the script we check as below
This is where the problem arises.
cjcox - Thanks a lot for those inputs...I will try to research more on those lines.
On Linux I could use the `watch` command to loop a command X times. Is there a similar command on AIX? If not, is there a way to write a loop on the command line to do this?
Linux: watch -d -n 60 'db2 list applications show detail | grep Connect | wc -l'
AIX: ??? (2 Replies)
How to convert this linux command to Unix AIX?
I have tried this command and work in CentOS:
tail --line=0 --retry -f --follow=name --max-unchanged-stats=1 logFile.log
But in AIX, the tail haven't "--retry" "--follow=name" option.
Thanks in advance. (1 Reply)
Sir ,
Can any body explain the difference between linux , Unix and AIx on command Reference all the command on AIx and unix is same or not
please reply (2 Replies)
Hello all
the su with -l option is running normal with linux but when i try to run it on unix AIX 5.2.7 it's not working with -l option
any help (6 Replies)
Hi,
I am facing one problem only with mv command not with cp command. I have a test program
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mount.h>
#include <fcntl.h>
#include <errno.h>
int sync_file(char *file)
{
FILE *fp=NULL;... (6 Replies)
Hi,
Script :
#!/usr/bin/ksh
echo "\n\t\t\t\t Enter your Name : \c"
read name
##############################
I ran the script in LINUX
Enter your Name : abcdefghijklmnopqrstuvwxyz
I ran the script in AIX
Enter your Name : opqrstuvwxyz <
I'm not able to see the... (2 Replies)
To list file permission/access right in octal format, linux has a command 'stat'. For example, we can use the followin -
stat -c %a `find . -type f
Is there any equivalent command in AIX and HP-UX to give the same result as linux 'stat' command?
Please advice. (3 Replies)
I'm having a problem regarding the encoding of my files in Linux and AIX.
I have a file which can be viewed both in Linux and AIX (via NetApp mount). When I checked the encoding, they have difference.
In Linux, the file is encoded as ISO-8859 text. (checked by using "file" command).... (1 Reply)
Hi All,
The scripts developed in AIX can be executed in Red Hat Linux too? Because, we are migrating OS from AIX to LINUX.
Will there be any differences in commands?
Thanks in advance!!!
Regards,
U (2 Replies)
Discussion started by: unme
2 Replies
LEARN ABOUT DEBIAN
spacewalk-channel
SPACEWALK-CHANNEL(8) Red Hat, Inc. SPACEWALK-CHANNEL(8)NAME
spacewalk-channel - Subscribe to or unsubscribe system from channel.
SYNOPSIS
spacewalk-channel [options]
DESCRIPTION
spacewalk-channel allows you to subscribe to and unsubscribe from specified channels via the command line. A visit to the Red Hat Network
(or Spacewalk) website isn't required.
OPTIONS -l, --list
Print a list of channel(s) that you are currently subscribed to.
-L, --available-channels
Print a list of all available child channels.
-a, --add
You are subscribing system to given channel(s). You have to specify --user and --password.
-r, --remove
You are unsubscribing system to given channel(s). You have to specify --user and --password.
-u, --user
Your username used to register the system with and for Red Hat Network, RHN Satellite or Spacewalk. If you do not enter this option
and it is required, you will be prompted.
-p, --password
The password associated with the username specified with the --user option. This is an unencrypted password. If you do not enter
this option and it is required, you will be prompted.
-c, --channel
Label of channel you want to subscribe to or unsubscribe from. Can be specified multiple times.
-v, --verbose
Print out successfull action.
-h, --help
Show a help message and exit.
NOTE
The addition and removal of channels is mutually exclusive, please use the command twice.
EXAMPLES
Subscribe to two channels:
spacewalk-channel --add -c rhn-tools-rhel-i386-server-5 -c rhel-i386-server-vt-5 --user username --password password
Unsubscribe from channel:
spacewalk-channel --remove -c rhn-tools-rhel-i386-server-5 -c rhel-i386-server-vt-5 --user username --password password
List subscribed channels:
spacewalk-channel --list
SEE ALSO rhnplugin(8), rhn_register(8), up2date(5).
AUTHORS
Miroslav Suchy <msuchy@redhat.com>
BUGS
Report bugs to <http://bugzilla.redhat.com>.
COPYRIGHT
Copyright (C) 2009-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 SPACEWALK-CHANNEL(8)