Re: bad argument modprobe when run from script

2003-10-20 Thread Benjamin J. Weiss
> I am working on my iptables script. > > When I run the /etc/rc.d/init.d/iptables script which calls > /etc/iptables.rules it fails with the error > "bad argument modprobe" > > If I just run the /etc/iptables.rules script I have no errors or if I run > modp

Re: bad argument modprobe when run from script

2003-10-19 Thread lrnobs
The default Redhat startup script has a grep command that launches IPTABLES_CONFIG. I hard coded the launch of my script instead /etc/iptables.rules and the script runs fine. I have to start another posting now, my script locks me out of my web site. Thanks, Larry Nobs At 07:04 PM 10/19

Re: bad argument modprobe when run from script

2003-10-19 Thread Edward Dekkers
lrnobs wrote: I am working on my iptables script. When I run the /etc/rc.d/init.d/iptables script which calls /etc/iptables.rules it fails with the error "bad argument modprobe" If I just run the /etc/iptables.rules script I have no errors or if I run modprobe ip_tables from bash

bad argument modprobe when run from script

2003-10-19 Thread lrnobs
I am working on my iptables script. When I run the /etc/rc.d/init.d/iptables script which calls /etc/iptables.rules it fails with the error "bad argument modprobe" If I just run the /etc/iptables.rules script I have no errors or if I run modprobe ip_tables from bash I have no er

Re: Script treats variable as command

2003-10-17 Thread lrnobs
t; Sent: Friday, October 17, 2003 10:22 PM Subject: Re: Script treats variable as command > On Sat, 2003-10-18 at 10:56, lrnobs wrote: > > I found a script for setting iptables on the internet that I like so far. > > > > The author declares some variables and then uses them l

Re: Script treats variable as command

2003-10-17 Thread Ed Greshko
On Sat, 2003-10-18 at 10:56, lrnobs wrote: > I found a script for setting iptables on the internet that I like so far. > > The author declares some variables and then uses them later on in the script > ie IFACE="eth0" > > When I try to run the script with ./iptables.

Script treats variable as command

2003-10-17 Thread lrnobs
I found a script for setting iptables on the internet that I like so far. The author declares some variables and then uses them later on in the script ie IFACE="eth0" When I try to run the script with ./iptables.rules I get a message that IFACE is not a command. I tried $IFACE wit

Re: SMS Server Script

2003-10-16 Thread Harish Sabnani
this b4?pls do let me know.   Thanks   Harish - Original Message - From: Jeff Silberberg To: [EMAIL PROTECTED] Sent: Thursday, October 16, 2003 5:53 PM Subject: Re: SMS Server Script Harish, Can you be more specific as on this comment ?  "I

Re: SMS Server Script

2003-10-16 Thread Simpson, Doug
TIA, > JMS > > At 01:28 AM 10/16/2003, you wrote: > > > Hi > > I am looking looking for a SMS script that I can use for sending Short Messages to > GSM > Phones,I have a service provider that allows me to send FREE msssgs to mobile users > on >

Re: SMS Server Script

2003-10-16 Thread Jeff Silberberg
Harish, Can you be more specific as on this comment ?  "I tried LinuxSMS but no luck." Why carrier are you sending to ? TIA, JMS At 01:28 AM 10/16/2003, you wrote: Hi   I am looking looking for a SMS script that I can use for sending Short Messa

SMS Server Script

2003-10-15 Thread Harish Sabnani
Hi   I am looking looking for a SMS script that I can use for sending Short Messages to GSM Phones,I have a service provider that allows me to send FREE msssgs to mobile users on its network,all I will need is a script where I can het my username and password authorised and start sending

Re: simple script

2003-10-09 Thread Toto Gamez
thanks - Original Message - From: Anthony E. Greene To: [EMAIL PROTECTED] Sent: Thursday, October 09, 2003 9:26 PM Subject: Re: simple script On 09-Oct-2003/16:11 +0800, Toto Gamez <[EMAIL PROTECTED]> wrote:>anyone ca give me a simple script that whe

Re: simple script

2003-10-09 Thread Anthony E. Greene
On 09-Oct-2003/16:11 +0800, Toto Gamez <[EMAIL PROTECTED]> wrote: >anyone ca give me a simple script that when ppp0 is up it will issue the >command "add route -net 192.168.101.0 netmask 255.255.255.128 gw >192.168.101.126" Put the command in /etc/ppp/ip-up.local. T

Re: simple script

2003-10-09 Thread Thierry ITTY
pppd automatically calls "/etc/ppp/ip-up.local" when the interface is up this script is intended for user customization (you shouldn't edit "/etc/ppp/ip-up") so you'd just have to add your "add route ... " command in it (create it if it doesn't exis

simple script

2003-10-09 Thread Toto Gamez
hi anyone ca give me a simple script that when ppp0 is up it will issue the command "add route -net 192.168.101.0 netmask 255.255.255.128 gw 192.168.101.126"   thanks in advance     Toto

RE: Script to check if a service is running...restart if not

2003-10-08 Thread Jason Staudenmayer
ss [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 1:15 PM To: [EMAIL PROTECTED] Subject: Re: Script to check if a service is running...restart if not On Wed, Oct 08, 2003 at 10:03:19AM -0700, John L wrote: > Good morning. I'm looking for an example of a script that I can r

Re: Script to check if a service is running...restart if not

2003-10-08 Thread Hal Burgiss
On Wed, Oct 08, 2003 at 10:03:19AM -0700, John L wrote: > Good morning. I'm looking for an example of a script that I can run > as a cron job every five minutes that will check to see if a daemon > is running (named) and restart it if it is not. Rough, and untested ... service $

Script to check if a service is running...restart if not

2003-10-08 Thread John L
Good morning. I'm looking for an example of a script that I can run as a cron job every five minutes that will check to see if a daemon is running (named) and restart it if it is not. For some crazy reason my name server decides to die (usually in the middle of the night). Thanks for any

Re: Script for moving directories

2003-10-02 Thread Rodolfo J. Paiz
hen I tried to move the dirs through a script, I'm getting the error "mv: cannot overwrite directory newdir/test1" I'd appreciate if you can help with some links or any scripts to solve this issue. Have you simply tried rsync for this? Works wonderfully, and I move all sorts of stu

Re: Script for moving directories

2003-10-02 Thread Bret Hughes
with the > same sub directories. > When I tried to move the dirs through a script, I'm getting the error > "mv: cannot overwrite directory newdir/test1" > > I'd appreciate if you can help with some links or any scripts to solve this issue. > > > Than

Script for moving directories

2003-10-02 Thread Peramslist
dirs through a script, I'm getting the error "mv: cannot overwrite directory newdir/test1"   I'd appreciate if you can help with some links or any scripts to solve this issue.     Thanks,   Peram  

Re: can a script as root without asking for password

2003-09-23 Thread Volker Kroll
On Tue, 2003-09-23 at 10:55, Simon Tischer wrote: > I have a script which shout be execute as root, from a normal user shell, with > nomal user permissions, without asking for root password. > > Is there any solution? Please have a look at man sudo, it will make it possible for y

Re: can a script as root without asking for password

2003-09-23 Thread Rus Foster
On Tue, 23 Sep 2003, Simon Tischer wrote: > HI > > > > I have a script which shout be execute as root, from a normal user shell, with > nomal user permissions, without asking for root password. > > Is there any solution? You can setup sudo to allow the user to run the s

can a script as root without asking for password

2003-09-23 Thread Simon Tischer
HI I have a script which shout be execute as root, from a normal user shell, with nomal user permissions, without asking for root password. Is there any solution? Thanks for help -- --- Simon -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https

Re: Sendmail from Shell Script?

2003-09-19 Thread Dali Islam
In my opinion mutt command works better for sending mail with attatchment using shell script then sendmail. I tried to send attatchment using sendmail didn't work for me! mutt -s "test" -a /root/.bashrc [EMAIL PROTECTED] < /root/greetings --- Cameron Simpson <[EMAIL PR

Re: script to monitor diskspace

2003-09-19 Thread Nurullah Akkaya
here is the one i used on a aix machine #!/bin/ksh LOGFILE=/oracle/KLT/brarchive.log EMPTY_LOG=/oracle/KLT/empty_log.log AWK_EXECUTABLE=awk echo "BRARCHIVE BOS ALANI KONTROL EDIYOR\n" >> $EMPTY_LOG if [ -n "$1" ] ; then drive_number=$1 else exit fi used_space=`df $drive_number |grep "$drive_numb

RE: script to monitor diskspace

2003-09-19 Thread Marvin Blackburn
s > Sent: Friday, September 19, 2003 2:33 PM > To: [EMAIL PROTECTED] > Subject: Re: script to monitor diskspace > > > On Fri, 19 Sep 2003 08:41:11 -0400 > Marvin Blackburn <[EMAIL PROTECTED]> wrote: > > > Does anyone have a shell script or procedure to monitor dis

Re: script to monitor diskspace

2003-09-19 Thread Sean Estabrooks
On Fri, 19 Sep 2003 08:41:11 -0400 Marvin Blackburn <[EMAIL PROTECTED]> wrote: > Does anyone have a shell script or procedure to monitor disk space. > i.e. notify someone when a filesystem gets too big? > Lots of ways to do this of course. One simplistic way is to add the fo

script to monitor diskspace

2003-09-19 Thread Marvin Blackburn
Does anyone have a shell script or procedure to monitor disk space. i.e. notify someone when a filesystem gets too big? -- Marvin Blackburn Systems Administrator Glen Raven "He's no failure. He's not dead yet" --William Lloyd George -- redhat-list mail

Re: Sendmail from Shell Script?

2003-09-17 Thread Cameron Simpson
On 20:18 17 Sep 2003, David Hart <[EMAIL PROTECTED]> wrote: | On Wed, 2003-09-17 at 19:41, Rus Foster wrote: | > On Wed, 17 Sep 2003, David Hart wrote: | > > I seem to recall there's a way to send a file from a shell script but | > > cannot remember how to do it. | >

Re: Sendmail from Shell Script?

2003-09-17 Thread fred smith
On Wed, Sep 17, 2003 at 08:18:08PM -0400, David Hart wrote: > On Wed, 2003-09-17 at 19:41, Rus Foster wrote: > > On Wed, 17 Sep 2003, David Hart wrote: > > > > > I seem to recall there's a way to send a file from a shell script but > > > cannot remember how

Re: Sendmail from Shell Script?

2003-09-17 Thread Lists
That may not work as you expect if file "filename" is something other than text. You may want to consider something like: uuencode filename filename | mail -s "File from script" emailaddr The file will have to be uudecoded at the receiving end but it should make it intact.

Re: Sendmail from Shell Script?

2003-09-17 Thread David Hart
On Wed, 2003-09-17 at 19:41, Rus Foster wrote: > On Wed, 17 Sep 2003, David Hart wrote: > > > I seem to recall there's a way to send a file from a shell script but > > cannot remember how to do it. > > > > If its plain text then just > > cat filename |

Re: Sendmail from Shell Script?

2003-09-17 Thread Rus Foster
On Wed, 17 Sep 2003, David Hart wrote: > I seem to recall there's a way to send a file from a shell script but > cannot remember how to do it. > If its plain text then just cat filename | sendmail [EMAIL PROTECTED] else you want to look at uuencoding it then cat'ing

Sendmail from Shell Script?

2003-09-17 Thread David Hart
I seem to recall there's a way to send a file from a shell script but cannot remember how to do it. Help, please. -- Hart's PGP Key: 0x7BFF655E - http://TQMcube.com/ha

Re: daemon and killproc problem in startup script

2003-09-16 Thread Jason Dixon
On Tue, 2003-09-16 at 01:52, Williams, Quinton L wrote: > I am using RH9 and cannot get the daemon and killproc commands to work > in my init.d startup scripts. > > I keep getting the following error: > > # /sbin/service dhcpd stop > > Stopping dhcpd: /etc/init.d/dhcpd: line 26: killproc: command

daemon and killproc problem in startup script

2003-09-15 Thread Williams, Quinton L
I am using RH9 and cannot get the daemon and killproc commands to work in my init.d startup scripts. I keep getting the following error:   # /sbin/service dhcpd stop Stopping dhcpd: /etc/init.d/dhcpd: line 26: killproc: command not found   # /sbin/service dhcpd start Starting dhcpd:

Re: Service script not killing process.

2003-09-08 Thread Cameron Simpson
On 15:04 08 Sep 2003, Stuart Stephen <[EMAIL PROTECTED]> wrote: | | Thanks Ben, that worked. | | The script editing was pretty straight forward. I just changed the following | line "ps ax --width=1000 | grep "[j]ava -server com.stevie.ChatServer.Start" | | awk '{ system

RE: Service script not killing process.

2003-09-08 Thread Stuart Stephen
Thanks Ben, that worked. The script editing was pretty straight forward. I just changed the following line "ps ax --width=1000 | grep "[j]ava -server com.stevie.ChatServer.Start" | awk '{ system("kill " $1) }'" and added the -9 after the kill in awk.

Re: Service script not killing process.

2003-09-08 Thread Benjamin J. Weiss
> talk2UtimeHi all, > > I have the following script to run a service under linux redhat 9.0 and it > worked when I was editing it initially. However, i've left the box on for a > few weeks now and I can't restart the services any more. > > I tried killing the proc

Service script not killing process.

2003-09-08 Thread Stuart Stephen
Title: talk2Utime Hi all,   I have the following script to run a service under linux redhat 9.0 and it worked when I was editing it initially. However, i've left the box on for a few weeks now and I can't restart the services any more.   I tried killing the process manually us

Re: Script using sed or awk

2003-09-05 Thread Bret Hughes
On Fri, 2003-09-05 at 13:12, Patrick Nelson wrote: > RH9 > > Have a php page and I want the outcome of > > du -hs /var/spool/imap/$username | awk '{print $1}' > > however, username is (say) joe.user.example.com but the directory is > joe^user^example^com > > Any sed or awk experts help me do t

Re: Script using sed or awk

2003-09-05 Thread Tiago Ferraz Machado - estagiario
However, if you want, here goes the "sed" solution: du -sh /var/spool/mail/`echo -e $USERNAME | sed 's/\./^/'` []`s Tiago. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list

Re: Script using sed or awk

2003-09-05 Thread John P Verel
On 09/05/03 11:12 -0700, Patrick Nelson wrote: > RH9 > > Have a php page and I want the outcome of > > du -hs /var/spool/imap/$username | awk '{print $1}' > > however, username is (say) joe.user.example.com but the directory is > joe^user^example^com > > Any sed or awk experts help me do this

Re: Script using sed or awk

2003-09-05 Thread Benjamin J. Weiss
e? The output is > simply the amount of space used by the user. The answer may not be sed or awk, but tr. Here's a quick test script I wrote up (I'm sure that somebody could improve upon it): #!/bin/bash USERNAME="joe.user.example.com"; du -sh /var/spool/imap/`echo -e $US

Script using sed or awk

2003-09-05 Thread Patrick Nelson
RH9 Have a php page and I want the outcome of du -hs /var/spool/imap/$username | awk '{print $1}' however, username is (say) joe.user.example.com but the directory is joe^user^example^com Any sed or awk experts help me do this in one line? The output is simply the amount of space used by the

Re: need help with a shell script

2003-09-04 Thread Dave Ihnat
I see that you've found a solution to your original query. However, I'd just like to comment on a general script technique. Especially when executing programs with a security aspect, such as su, it's a very good idea to give the entire absolute path to the program, e.g., inst

Re: need help with a shell script

2003-09-04 Thread steffen . grunewald
On Thu, Sep 04, 2003 at 11:25:27AM -0500, Dana Holland wrote: > [EMAIL PROTECTED] wrote: > > >Try to add an extra '-' after 'su' > > Thanks! That was it - works great now! Perhaps I should also explain why. Simply giving "su" a command to execute will run it in the environment of the calling pr

Re: need help with a shell script

2003-09-04 Thread Dana Holland
[EMAIL PROTECTED] wrote: Try to add an extra '-' after 'su' Thanks! That was it - works great now! There's also a deactivate option available... I saw that, but it didn't have enough info - does that simply prevent logging in? Would it affect the functioning of this vacation program in any wa

Re: need help with a shell script

2003-09-04 Thread Michael Gargiullo
On Thu, 2003-09-04 at 11:50, Dana Holland wrote: > I've written a shell script which will create a new user, then create a > .forward and .vacation.msg file in the new user's home directory. > Within this script, I'm trying to automate the initialization of the >

Re: need help with a shell script

2003-09-04 Thread steffen . grunewald
On Thu, Sep 04, 2003 at 10:50:22AM -0500, Dana Holland wrote: > I've written a shell script which will create a new user, then create a > .forward and .vacation.msg file in the new user's home directory. > Within this script, I'm trying to automate the initialization of

need help with a shell script

2003-09-04 Thread Dana Holland
I've written a shell script which will create a new user, then create a .forward and .vacation.msg file in the new user's home directory. Within this script, I'm trying to automate the initialization of the vacation program - that's where I'm running into problems. I&

Re: adding fetchmail startup script

2003-08-28 Thread Marc Adler
gt; /dev/null. In daemon mode, fetchmail submits notification messages > about major errors such as ongoing connection failures. Actually, after playing around with the cron job approach, I went ahead and installed the first replier's startup script, because I boot up my computer several tim

Re: adding fetchmail startup script

2003-08-28 Thread Michael Schwendt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 28 Aug 2003 05:46:25 -0400, Juan Martinez wrote: > > I can see that now! It has been running every minute, and filling my > > mailbox with notices! How do I get rid of the notification function? > > > > MAILTO= didn't work. > > Redirect the

Re: adding fetchmail startup script

2003-08-28 Thread Marc Adler
t 22:11, Johnie Stafford wrote: > > > > > On Wed, 2003-08-27 at 21:52, MKlinke wrote: > > > > > > On Wednesday 27 August 2003 21:21, Marc Adler wrote: > > > > > > [snip shell script -- I'm too newbie for that...] > > > > > >

Re: adding fetchmail startup script

2003-08-28 Thread Marc Adler
, MKlinke wrote: > > > > > On Wednesday 27 August 2003 21:21, Marc Adler wrote: > > > > [snip shell script -- I'm too newbie for that...] > > > > If you're interested in how this works, start with the manual and the > section on services. T

Re: adding fetchmail startup script

2003-08-28 Thread MKlinke
On Thursday 28 August 2003 03:28, Marc Adler wrote: > * Bret Hughes <[EMAIL PROTECTED]> [2003-08-27 17:27]: > > On Wed, 2003-08-27 at 22:11, Johnie Stafford wrote: > > > On Wed, 2003-08-27 at 21:52, MKlinke wrote: > > > > On Wednesday 27 August 2003 21:21, Marc

Re: adding fetchmail startup script

2003-08-28 Thread Juan Martinez
On Thu, 2003-08-28 at 05:31, Marc Adler wrote: > * Juan Martinez <[EMAIL PROTECTED]> [2003-08-27 22:51]: > > On Thu, 2003-08-28 at 04:28, Marc Adler wrote: > > > > This is no different than * * * * * (I.E. it will run every minute). To > > make it run every hour you must pick a time of the hour w

Re: adding fetchmail startup script

2003-08-28 Thread Marc Adler
* Juan Martinez <[EMAIL PROTECTED]> [2003-08-27 22:51]: > On Thu, 2003-08-28 at 04:28, Marc Adler wrote: > > * Bret Hughes <[EMAIL PROTECTED]> [2003-08-27 17:27]: > > > On Wed, 2003-08-27 at 22:11, Johnie Stafford wrote: > > > > On Wed, 2003-08-27 at 21:52, MKlinke wrote: > > > > > On Wednesday 27

Re: adding fetchmail startup script

2003-08-28 Thread Juan Martinez
On Thu, 2003-08-28 at 04:28, Marc Adler wrote: > * Bret Hughes <[EMAIL PROTECTED]> [2003-08-27 17:27]: > > On Wed, 2003-08-27 at 22:11, Johnie Stafford wrote: > > > On Wed, 2003-08-27 at 21:52, MKlinke wrote: > > > > On Wednesday 27 August 2003 21:21, Marc

Re: adding fetchmail startup script

2003-08-28 Thread Marc Adler
* Bret Hughes <[EMAIL PROTECTED]> [2003-08-27 17:27]: > On Wed, 2003-08-27 at 22:11, Johnie Stafford wrote: > > On Wed, 2003-08-27 at 21:52, MKlinke wrote: > > > On Wednesday 27 August 2003 21:21, Marc Adler wrote: [snip shell script -- I'm too newbie for that...]

Re: adding fetchmail startup script

2003-08-28 Thread Bret Hughes
> > > wasn't in the list. > > > > > > Thanks, > > > > > > Here's a script that works under RH9 for me. It's set up as a daemon > > that runs every 900 seconds. If you downloaded fetchmail in the > > tarball fashion it

Re: adding fetchmail startup script

2003-08-28 Thread Johnie Stafford
nd fetches my mail. I looked at some of the scripts > > in /etc/init.d, but couldn't figure out how to simply write one for > > fetchmail. Is there a simple way? I tried serviceconf, but fetchmail > > wasn't in the list. > > > > Thanks, > > > Here

RE: Shell Script Functionality

2003-08-28 Thread Bradley Caricofe
> I always found man find to be hard to glean usable information from but > info find does a pretty good job of explaining and gives some examples. Thanks very much! Very, very helpful... =) - Brad -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailma

RE: Shell Script Functionality

2003-08-28 Thread Bret Hughes
On Wed, 2003-08-27 at 20:14, Bradley Caricofe wrote: > > untested but should come close: > > > > find ~/.loki -name '*.dso'|xargs rm > > > > Assumption: > > > > file is run under the user's id otherwise the ~ will not substitute > > correctly. > > Bret and Sean, thanks very much! Within the .loki

Re: adding fetchmail startup script

2003-08-28 Thread MKlinke
c/init.d, but couldn't figure out how to simply write one for > fetchmail. Is there a simple way? I tried serviceconf, but fetchmail > wasn't in the list. > > Thanks, Here's a script that works under RH9 for me. It's set up as a daemon that runs every 900 seconds

adding fetchmail startup script

2003-08-28 Thread Marc Adler
I want to have fetchmail start up automatically, because as it is I have to type "fetchmail" (twice for some reason) at the shell prompt before it goes and fetches my mail. I looked at some of the scripts in /etc/init.d, but couldn't figure out how to simply write one for fetchmail. Is there a simp

RE: Shell Script Functionality

2003-08-28 Thread Bradley Caricofe
> untested but should come close: > > find ~/.loki -name '*.dso'|xargs rm > > Assumption: > > file is run under the user's id otherwise the ~ will not substitute > correctly. Bret and Sean, thanks very much! Within the .loki directory are about 20 subdirectories with these .dso files. Will this

Re: Shell Script Functionality

2003-08-27 Thread Bret Hughes
On Wed, 2003-08-27 at 17:04, Bradley Caricofe wrote: > I have a Tribes 2 server running on my RH 7.2 system and I have a simple > startup script that brings the game server up. The game creates a hidden > .loki folder in my users home directory which contains all of the game > setti

Re: Shell Script Functionality

2003-08-27 Thread Sean Estabrooks
On Wed, 27 Aug 2003 18:04:36 -0400 "Bradley Caricofe" <[EMAIL PROTECTED]> wrote: > I have a Tribes 2 server running on my RH 7.2 system and I have a simple > startup script that brings the game server up. The game creates a hidden > .loki folder in my users home direct

Shell Script Functionality

2003-08-27 Thread Bradley Caricofe
I have a Tribes 2 server running on my RH 7.2 system and I have a simple startup script that brings the game server up. The game creates a hidden .loki folder in my users home directory which contains all of the game settings. Within this folder are hundreds of .dso files that are compiled on

RE: Re: Premature end of script

2003-08-22 Thread Thomas E. Dukes
r CGI is simply not able to find the appropriate > modules, I would have hoped that you'd have seen this in your > Apache error_log already. > Please tell me you've already checked this. :) Hi Jason, I upgraded from RH 8 to RH 9. Yes, that was the first thing I checked. The onl

Re: Re: Premature end of script

2003-08-22 Thread Jason Dixon
On Fri, 2003-08-22 at 17:55, [EMAIL PROTECTED] wrote: > > > > You probably have perl modules installed in the old perl's site-lib > > folder. IIRC, when you upgrade perl to a new major version, you must > > recompile all of your site-lib modules for the new version. > > Arrg!! > >

Re: Re: Premature end of script

2003-08-22 Thread edukes
> > From: Gordon Messmer <[EMAIL PROTECTED]> > Date: 2003/08/22 Fri PM 02:27:32 CDT > To: [EMAIL PROTECTED] > Subject: Re: Premature end of script > > Thomas E. Dukes wrote: > > Hello, > > > > Since upgrading to RH 9.0, I have had a rash of previou

Re: Premature end of script

2003-08-22 Thread Gordon Messmer
Thomas E. Dukes wrote: Hello, Since upgrading to RH 9.0, I have had a rash of previously running .cgi's getting "Premature end script." Has anyone had these problems? Is there a problem with perl in RH 9.0? Openwebmail was one. It did this twice, but a re-install fixed it for n

Re: RE: Premature end of script

2003-08-21 Thread edukes
1 Thu PM 12:15:10 CDT > To: <[EMAIL PROTECTED]> > Subject: RE: Premature end of script > > Have you tried changing the unicode settings in redhat? I know I've > heard a lot of people having issues with perl due to the unicode setting > in RH9. See > https://www.redh

RE: Premature end of script

2003-08-21 Thread Nick White
From: Thomas E. Dukes [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 3:26 AM To: [EMAIL PROTECTED] Com Subject: Premature end of script Hello, Since upgrading to RH 9.0, I have had a rash of previously running .cgi's getting "Premature end script." Has anyone had these p

Re: Premature end of script

2003-08-21 Thread Michael Schwendt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 21 Aug 2003 06:26:24 -0400, Thomas E. Dukes wrote: > Since upgrading to RH 9.0, I have had a rash of previously running > .cgi's getting "Premature end script." > > Has anyone had these problems? Is there a

Premature end of script

2003-08-21 Thread Thomas E. Dukes
Hello, Since upgrading to RH 9.0, I have had a rash of previously running .cgi's getting "Premature end script." Has anyone had these problems? Is there a problem with perl in RH 9.0? Openwebmail was one. It did this twice, but a re-install fixed it for now. Now its my co

Re: RC script question

2003-08-14 Thread Bret Hughes
argument. > However, what happens when I reboot or shutdown lets say? > This is where im confused? IIRC shutdown -h does the equivalent to telinit 0 shutdown -r or reboot doe telinit 6 the key to all this is the /etc/rc.d/rc script this is where all those links get used. Seems like RH

Re: RC script question

2003-08-10 Thread Sean Estabrooks
Hey Jason, > > S80postfix -> ../init.d/postfix > > Which I understand starts postfix with a priority of 80. It's not exactly a priority, it just serves to control the order that services are started. > > But where im confused is how come there is no kill for postfix? To my > understanding I

RC script question

2003-08-09 Thread Jason Williams
Hello everyone. I was playing around with our mail server today when I came across a few ideas that I would like to implement on my mail server. My mail server is currently running postfix. The server boots to run level 3 What I found interesting when I was looking in the /etc/rc.d/rc3.d direct

Re: Help with shell script

2003-08-01 Thread Anthony E. Greene
On 31-Jul-2003/11:02 -0500, Peram's List <[EMAIL PROTECTED]> wrote: >I'd appreciate if you can guide me/help me on a script on deleting >files/directories more than two days old on Redhat servers. man tmpwatch Tony -- Anthony E. Greene <mailto:[EMAIL PROTECTED]>

Re: Help with shell script

2003-07-31 Thread Peram's List
Thanks for your help guys. I appreciate that. - Original Message - From: "Michael Gargiullo" <[EMAIL PROTECTED]> To: "redhat mailing list" <[EMAIL PROTECTED]> Sent: Thursday, July 31, 2003 11:10 AM Subject: Re: Help with shell script > Sure post what

Re: Help with shell script

2003-07-31 Thread James Gibbon
roduction Solaris mail server in an investment bank. The variable representing the directory to run the find from had become assigned to / thanks to a bug in his script (run from cron, as root). I remember it quite well, because I was on call at the time, and awoken in the early hours of one Monday

Re: Help with shell script

2003-07-31 Thread Jonathan Bartlett
> *Note: The above line is a joke, please don't run it on your system Ah! I seee. Long day. Jon > > -- > Michael Gargiullo <[EMAIL PROTECTED]> > Warp Drive Networks > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED] > https://www.redhat.com/mailman/listinfo/redhat-list

Re: Help with shell script

2003-07-31 Thread Jonathan Bartlett
> find / -mtime +2 -type d -exec rm -rf \{} \; > > I wonder how long that will run before it eats itself? Hasn't anyone > wanted to do that just to see... > ;) I wouldn't do that, because the directory doesn't change if the file contents change. Jon > > *Note: The above line is a joke, please

Re: Help with shell script

2003-07-31 Thread Michael Gargiullo
On Thu, 2003-07-31 at 12:11, Jonathan Bartlett wrote: > > I'd appreciate if you can guide me/help me on a script on deleting > > files/directories more than two days old on Redhat servers. > > find WHATEVER -mtime +2 -type f -exec rm \{} \; > > substitute WHATEVER

Re: Help with shell script

2003-07-31 Thread Jonathan Bartlett
> I'd appreciate if you can guide me/help me on a script on deleting files/directories > more than two days old on Redhat servers. find WHATEVER -mtime +2 -type f -exec rm \{} \; substitute WHATEVER with the top-level directory you want to purge on. Follow this with. find WHATEVE

Re: Help with shell script

2003-07-31 Thread Michael Gargiullo
Sure post what you have so far. On Thu, 2003-07-31 at 12:02, Peram's List wrote: > Hi all, > I'd appreciate if you can guide me/help me on a script on deleting > files/directories more than two days old on Redhat servers. > > Regards, > > Peram -- Michael Gar

Help with shell script

2003-07-31 Thread Peram's List
Hi all, I'd appreciate if you can guide me/help me on a script on deleting files/directories more than two days old on Redhat servers.   Regards,   Peram

Re: CLI - can you tell a shell script from a binary?

2003-07-27 Thread Dave Ihnat
On Sun, Jul 27, 2003 at 12:48:04PM -0300, josé toneh wrote: > Is there any way to tell a shell script from a > binary in the bash CLI? Nautilus sees that, so ls or > dir should too, no? The simplest way is to use the 'file' command. Pre-check with samples to make sure it&

Re: CLI - can you tell a shell script from a binary?

2003-07-27 Thread Jason Dixon
On Sun, 2003-07-27 at 11:48, josé toneh wrote: > Is there any way to tell a shell script from a > binary in the bash CLI? Nautilus sees that, so ls or > dir should too, no? Try the "file" command. [EMAIL PROTECTED] jason]$ file install-crossover-office-2.0.1.sh install-cro

CLI - can you tell a shell script from a binary?

2003-07-27 Thread josé toneh
Is there any way to tell a shell script from a binary in the bash CLI? Nautilus sees that, so ls or dir should too, no? Thanks -- jt ___ Conheça o novo Cadê? - Mais rápido, mais fácil e mais preciso. Toda a web, 42

RE: problem with syslog and logratote script

2003-07-14 Thread Chris W. Parker
Cowles, Steve wrote: > May I suggest that you place your sonicwall/log entry in the correct > file or add a postrotate directive to what you have above. For > reference: try /etc/logrotate.d/syslog -or- create your own logrotate > file. Notice that most of the scripts in

Re: problem with syslog and logratote script

2003-07-12 Thread Leonard den Ottolander
Hi Chris, > Let's see... I have a Sonicwall firewall that is sending it's data to my linux > box via local0. > > Here is the pertinent line in /etc/syslog.conf: > > local0.* /var/log/sonicwall/log > > Here is /etc/logrotate.conf (I removed all unnecessary lines): > /var/log/sonicw

RE: problem with syslog and logratote script

2003-07-12 Thread Cowles, Steve
otate 7 > create > compress > } > > For about one day the file /var/log/sonicwall/log increased in size > (as it should) as the sonicwall entries were inserted into it. After > that day when the logrotate script ran it created a log.1.gz file. > This of course is becaus

ip-up.ttyS0 script

2003-07-12 Thread nlimbu
Hi all, When ppp connection is up in any port, ip-up script is triggered. Is there any script like ip-up.ttyS0, which triggers only when ppp connection is up in a particular port (eg: ttyS0). With Regards Nabin Limbu

problem with syslog and logratote script

2003-07-11 Thread Chris W. Parker
nserted into it. After that day when the logrotate script ran it created a log.1.gz file. This of course is because of the "compress" option. BUT!! After that, the /var/log/sonicwall/log file stopped increasing in size because it wasn't having any entries put into it. Now, in th

making a better RSYNC script --help

2003-06-24 Thread Timothy Stone
RH List Fellows: I use the following shell script that I invoke at the command line that "bulk" updates my production web server (windoze 2k + cygwin) via ssh on my staging server (rhl8) #!/bin/sh # # rsync -rtplzv --delete -e ssh ./stage-docroot \ # [EMAIL PROTECTED]:/cygdrive/c

  1   2   3   4   5   6   7   8   9   10   >