10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi Am Using unix Aix
When i ftp the zero size file getting the netout: write returned 0? (1 Reply)
Discussion started by: Venkatesh1
1 Replies
2. Shell Programming and Scripting
Hello,
I have something that should be very simple yet I am losing my head in figuring out how to get it to work:
I am calling a function passing a parameter, this will return a particular string, next I want to substring the returned value and break it apart.
All of this I want to do on a... (2 Replies)
Discussion started by: gio001
2 Replies
3. Shell Programming and Scripting
Hi all,
I am wondering how can I check when a variable has nothing returned in it. I am trying to store a pid in this variable to see if a script is running in the background. So I am using something like that
proc_pid=`ps -ef |grep script.sh|grep -v grep|awk '{print $2}'`
if
then
... (1 Reply)
Discussion started by: geovas
1 Replies
4. Shell Programming and Scripting
Hi,
In a file old.txt containing (for example) a series..
#limerick There was a young lady from Nantucket..
\images\Blank.jpg
:end
#joke A horse walked into a bar...
\images\Blank.jpg
end
I would like to achieve new.txt containing
#limerick There was a young lady from Nantucket..... (5 Replies)
Discussion started by: Nigel_R
5 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
I tried to find the reply using google, yet did not find a conclusive answer.
When I use 'find . -ls', I get something like:
3423297 8 -rw-r--r-- 1 useradmin staff 135 4 apr 09:46 ./.~lock.dir-file-list.csv#
I know that
3423297 is the inode
-rw-r--r-- ... (2 Replies)
Discussion started by: dakke
2 Replies
6. Shell Programming and Scripting
Hi ,
When i try to ftp a zero byte file across through a shell script
It gives me the mesaage
netout: write returned 0?
Is there any way i can supress this message as it does not affect the execution of the script
Thanks (1 Reply)
Discussion started by: lifzgud
1 Replies
7. HP-UX
Hi all
can i use unix variable holds the data returned by oracle in a shell script?
x=sqlplus -s u/p@h <<! >>fg.log
whenever sqlerr exit 1
select count(*) from schema.mat_view;
exit
!
echo $x
Will the $x return the value of count(*)?
thanks
megh (1 Reply)
Discussion started by: megh
1 Replies
8. Shell Programming and Scripting
Hi Pals
I am using this command in my script to find out warnings using fgrep where $log is the log file name, $date is the date to be searching and warnings.list contains list of matching words.
grep "WARNING" $log|grep "$date"|fgrep -vf warnings.list
I want to perform another action... (1 Reply)
Discussion started by: johnl
1 Replies
9. HP-UX
Hi, there,
I want to excute the remote command shell via "remsh", are there any simple or best way to get the result of remote shell from local ? thanks. (2 Replies)
Discussion started by: Frank2004
2 Replies
10. Shell Programming and Scripting
Hi all, below is my PERL script
$ids = $dbh->prepare ("select * from tableA");
$ids->execute();
$names = $ids->fetchall_arrayref();
print " Total valid ids is $#names \n"; Table only has 1 column, approx 400 rows
the value of $#names is -1. Would anyone point out what could have caused the... (1 Reply)
Discussion started by: new2ss
1 Replies
CATMAN(8) System Manager's Manual CATMAN(8)
NAME
catman - create the cat files for the manual
SYNOPSIS
/usr/sbin/catman [ -p ] [ -n ] [ -w ] [ -M path ] [ sections ]
DESCRIPTION
Catman creates the preformatted versions of the on-line manual from the nroff input files. Each manual page is examined and those whose
preformatted versions are missing or out of date are recreated. If any changes are made, catman will recreate the whatis database.
If there is one parameter not starting with a `-', it is taken to be a list of manual sections to look in. For example
catman 123
will cause the updating to only happen to manual sections 1, 2, and 3.
Options:
-n prevents creations of the whatis database.
-p prints what would be done instead of doing it.
-w causes only the whatis database to be created. No manual reformatting is done.
-M updates manual pages located in the set of directories specified by path (/usr/man by default). Path has the form of a colon (`:')
separated list of directory names, for example `/usr/local/man:/usr/man'. If the environment variable `MANPATH' is set, its value
is used for the default path.
If the nroff source file contains only a line of the form `.so manx/yyy.x', a symbolic link is made in the catx directory to the appropri-
ate preformatted manual page. This feature allows easy distribution of the preformatted manual pages among a group of associated machines
with rdist(1). The nroff sources need not be distributed to all machines, thus saving the associated disk space. As an example, consider
a local network with 5 machines, called mach1 through mach5. Suppose mach3 has the manual page nroff sources. Every night, mach3 runs
catman via cron(8) and later runs rdist with a distfile that looks like:
MANSLAVES = ( mach1 mach2 mach4 mach5 )
MANUALS = (/usr/man/cat[1-8no] /usr/man/whatis)
${MANUALS} -> ${MANSLAVES}
install -R;
notify root;
FILES
/usr/man default manual directory location
/usr/man/man?/*.* raw (nroff input) manual sections
/usr/man/cat?/*.* preformatted manual pages
/usr/man/whatis whatis database
/usr/sbin/makewhatis command script to make whatis database
SEE ALSO
man(1), cron(8), rdist(1)
BUGS
Acts oddly on nights with full moons.
The need for catman(8) is almost but not quite gone. Most of the manpages have been moved out of /usr/src/man into the sourcecode hierar-
chy. The recreation of the whatis database is the main use of catman now.
4th Berkeley Distribution October 23, 1996 CATMAN(8)