06-28-2005
Thanks for all the replies. I'm going to try a few things out and see how far I get. I'll post back what I wound up using.
Regards,
Dave
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
if ; then
echo Its Cold for $sid at $c_dst
$jobroot/scripts/abc.sh $sid COLD $c_dst
elif ; then
echo Its Hot for $sid at $h_dst
$jobroot/scripts/abc.sh $sid HOT $h_dst
else
echo No backup for $sid today
wat does foo do ?? (2 Replies)
Discussion started by: bn_unx
2 Replies
2. Shell Programming and Scripting
I need a way to grep -v a list of times/date from the output of postqueue -p that are a few hours old, in order to remove them with postsuper -d.
Right now I have a script that is deleting the previous day of messages left in the queue, which runs once each day.
I want to clean up the job and... (1 Reply)
Discussion started by: DoneWithM$
1 Replies
3. Shell Programming and Scripting
Hallo,
I need to test a String (a special ip number-string).
So I want to run that:
ipadress=172.0.0.0
# for debugging:
echo $ipadress | egrep -e '172\.?\.??\.??$'
# the test that doesnt work
if test -z `echo $ipadress | egrep -e '172\.?\.??\.??$'` != ""
then
echo "match"
else... (1 Reply)
Discussion started by: wiseguy
1 Replies
4. Shell Programming and Scripting
I'm very very new to shell scripting (about 4 hours)
i've google'd till i can't google no more
is it possible to have store values in a config file .e.g
/etc/foo.conf
data=/home/
mount=/dev/sda1
size=1GB
and access these values from a shell script but also
be able to use... (3 Replies)
Discussion started by: xpd259
3 Replies
5. Shell Programming and Scripting
Suppose I have a text file that contains the tags <foo> and <bar>. The text file can have unlimted occurances of <foo> and <bar> and looks somthing like this:
<foo>
Some
Text
<foo>
Some
Text
<bar>
Some
Text
<foo>
Some (1 Reply)
Discussion started by: ArterialTool
1 Replies
6. UNIX for Dummies Questions & Answers
Hi:
How can I remove my own post?
Thanks. (2 Replies)
Discussion started by: phil518
2 Replies
7. UNIX for Dummies Questions & Answers
I'm not all that much of a newbie but I've not encountered this before. Happens both in Cygwin and in Mac OS X (Darwin):
cp -R /path/to/foo/.* /path/to/bar
(where directory 'bar' exists)
... seems to copy not only the contents of directory 'foo', but also other directories that are... (3 Replies)
Discussion started by: ChapHarrison
3 Replies
8. UNIX for Dummies Questions & Answers
Sometimes it works for me and sometimes I get this error:
syntax error on line 1, teletype
Basically I've got no idea whats going on, especially at the end of the command: bc
Any help is appreciated (1 Reply)
Discussion started by: phunkypants
1 Replies
9. Shell Programming and Scripting
I am writing a BASH script to update a webserver and then restart Apache. It looks basically like this:
#!/bin/bash
rsync /path/on/local/machine/ foo.com:path/on/remote/machine/
ssh foo.com sudo /etc/init.d/apache2 reloadrsync and ssh don't prompt for a password, because I have DSA encryption... (9 Replies)
Discussion started by: fluoborate
9 Replies
LEARN ABOUT SUSE
form_post
post(3FORM) post(3FORM)
NAME
post - write or erase forms from associated subwindows
SYNOPSIS
#include <form.h>
int post_form(FORM *form);
int unpost_form(FORM *form);
DESCRIPTION
The function post_form displays a form to its associated subwindow. To trigger physical display of the subwindow, use refresh or some
equivalent curses routine (the implicit doupdate triggered by an curses input request will do).
The function unpost_form erases form from its associated subwindow.
RETURN VALUE
These routines return one of the following:
E_OK The routine succeeded.
E_BAD_ARGUMENT
Routine detected an incorrect or out-of-range argument.
E_BAD_STATE
Routine was called from an initialization or termination function.
E_NOT_POSTED
The form has not been posted.
E_NOT_CONNECTED
No items are connected to the form.
E_NO_ROOM
Form is too large for its window.
E_POSTED
The form has already been posted.
E_SYSTEM_ERROR
System error occurred (see errno).
SEE ALSO
ncurses(3NCURSES), form(3FORM).
NOTES
The header file <form.h> automatically includes the header file <curses.h>.
PORTABILITY
These routines emulate the System V forms library. They were not supported on Version 7 or BSD versions.
AUTHORS
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond.
post(3FORM)