Re: Latest iptables init scripts, and "rmmod"

2003-09-16 Thread Mike Burger
t; Another side effect is that it causes hosts to hang during shut down or > > reboot at "stopping iptables". A major pain if you're rebooting remotely. > > > > Might be a good idea to post it on bugzilla along with the fix. > > > > Be very surprised i

Re: Latest iptables init scripts, and "rmmod"

2003-09-16 Thread Mike Burger
On Wed, 17 Sep 2003, Ian Mortimer wrote: > > > > If it weren't for the fact that the output told me that it was trying to > > > "rmmod", I'd have nto known what to comment out of the init script. > > This is RedHat 8.0 right? The RedHat 9 init script doesn't do it. In my case, 7.1 and 7.2. T

Re: Latest iptables init scripts, and "rmmod"

2003-09-16 Thread Mike Burger
On Tue, 16 Sep 2003, Sean Estabrooks wrote: > On Tue, 16 Sep 2003 21:19:27 -0500 (EST) > Mike Burger <[EMAIL PROTECTED]> wrote: > > > Can anyone tell me whose bright idea it was to have the init script for > > iptables attempt to remove the iptables modules when one runs a "service > > iptables

Re: Latest iptables init scripts, and "rmmod"

2003-09-16 Thread Ian Mortimer
> Be very surprised if this was always a problem with RH8 given its > maturity. I first started seeing it after the last errata update to iptables for RH 8.0 (a few weeks ago). -- Ian -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/re

Re: Latest iptables init scripts, and "rmmod"

2003-09-16 Thread Sean Estabrooks
tables". A major pain if you're rebooting remotely. > > Might be a good idea to post it on bugzilla along with the fix. > Be very surprised if this was always a problem with RH8 given its maturity. And the latest init scripts _do_ remove the module, they just use the mod

Re: Latest iptables init scripts, and "rmmod"

2003-09-16 Thread Ian Mortimer
> > If it weren't for the fact that the output told me that it was trying to > > "rmmod", I'd have nto known what to comment out of the init script. This is RedHat 8.0 right? The RedHat 9 init script doesn't do it. > So far, it's caused one of my systems to crash and reboot, and another to >

Re: Latest iptables init scripts, and "rmmod"

2003-09-16 Thread Sean Estabrooks
On Tue, 16 Sep 2003 21:19:27 -0500 (EST) Mike Burger <[EMAIL PROTECTED]> wrote: > Can anyone tell me whose bright idea it was to have the init script for > iptables attempt to remove the iptables modules when one runs a "service > iptables stop"? > > So far, it's caused one of my systems to cra

Latest iptables init scripts, and "rmmod"

2003-09-16 Thread Mike Burger
Can anyone tell me whose bright idea it was to have the init script for iptables attempt to remove the iptables modules when one runs a "service iptables stop"? So far, it's caused one of my systems to crash and reboot, and another to lock up. If it weren't for the fact that the output told me

Installing perl breaks redhat-config scripts [was: New (well known) printer won't install in RH-9]

2003-08-14 Thread Julius Smith
Gee, I get to answer my own help request. :-) The problem (for the searchable record) is that installing a new version of perl breaks redhat configuration scripts. To fix it, you have to add the Red Hat "vendor libraries" to perl's @INC path. Otherwise, perl utilities su

Re: Shell Scripts for automating Telnet sessions

2003-07-30 Thread Jeff Kinz
On Wed, Jul 30, 2003 at 09:06:24AM -0700, pnelson wrote: > On Wed, 2003-07-30 at 02:48, anil garrepally wrote: > > Can anyone tell me how to write a Bash script, that will do > > telnet login to one machine and do some activity on that logged > > machine. > > > > I was informed that .telnetrc f

Re: Shell Scripts for automating Telnet sessions

2003-07-30 Thread Jack Bowling
On Wed, Jul 30, 2003 at 11:10:18AM -0500, Ed Wilts wrote: > On Wed, 2003-07-30 at 02:48, anil garrepally wrote: > > Can anyone tell me how to write a Bash script, that will do > > telnet login to one machine and do some activity on that logged > > machine. > > > > I was informed that .telnetrc

Re: Shell Scripts for automating Telnet sessions

2003-07-30 Thread Ed Wilts
On Wed, 2003-07-30 at 02:48, anil garrepally wrote: > Can anyone tell me how to write a Bash script, that will do > telnet login to one machine and do some activity on that logged > machine. > > I was informed that .telnetrc file will help,if so what is the > entry i should add in to that file

Re: Shell Scripts for automating Telnet sessions

2003-07-30 Thread pnelson
On Wed, 2003-07-30 at 02:48, anil garrepally wrote: > Can anyone tell me how to write a Bash script, that will do > telnet login to one machine and do some activity on that logged > machine. > > I was informed that .telnetrc file will help,if so what is the > entry i should add in to that file

Re: Shell Scripts for automating Telnet sessions

2003-07-30 Thread Willem van der Walt<[EMAIL PROTECTED]>
do man nc or info nc nc is netcat and can be used to do what you want. On 30 Jul 2003, anil garrepally wrote: > Hi Everyone, > > Can anyone tell me how to write a Bash script, that will do > telnet login to one machine and do some activity on that logged > machine. > > I was informed that .

Shell Scripts for automating Telnet sessions

2003-07-30 Thread anil garrepally
Hi Everyone, Can anyone tell me how to write a Bash script, that will do telnet login to one machine and do some activity on that logged machine. I was informed that .telnetrc file will help,if so what is the entry i should add in to that file. where can i found Any kind of information relat

Re: Adding scripts to RedHat startup (rc.sysinit, rc.local)

2003-06-25 Thread Toralf Lund
Hello list, I have written two scripts that work together to locate all of the serially attached devices in a system (including a serial console) as well as determine how many serial ports the system has, then enable a login (via agetty) for all unused serial ports. One of the scripts is a perl

Re: Adding scripts to RedHat startup (rc.sysinit, rc.local)

2003-06-25 Thread Bart van Kuik
X-No-Archive: Yes Put your scripts in the directory /etc/rc.d/init.d Then do something like: chkconfig --add scriptname1 chkconfig --add scriptname2 Then set the levels on which the scripts should run: chkconfig --level 345 scriptname1 on chkconfig --level 345 scriptname1 on This creates

Adding scripts to RedHat startup (rc.sysinit, rc.local)

2003-06-25 Thread Matthew Richards
Hello list, I have written two scripts that work together to locate all of the serially attached devices in a system (including a serial console) as well as determine how many serial ports the system has, then enable a login (via agetty) for all unused serial ports. One of the scripts is a

Re: backup scripts

2003-05-30 Thread Bret Hughes
On Wed, 2003-05-28 at 09:43, Andrew Williams wrote: > I used amanda for a year or so to do just what you want. It's not > terribly difficult to setup (the first few tries are frustrating but > eventually a light will come on and all will make sense) The only bad > thing about amanda (and the reas

RE: backup scripts

2003-05-30 Thread AragonX
Great. That's what I'm doing now but I wasn't sure if there was a better way to do it. > > -Original Message- > From: AragonX [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 29, 2003 8:02 AM > To: [EMAIL PROTECTED] > Subject: Re: backup scripts > >

Re: backup scripts

2003-05-30 Thread Gordon Messmer
You should be able to use the non rewinding tape device. To restore, you'd use 'mt' to find the correct file, and dump it. Google can probably help you more, and if you're serious about backups there's O'Reilly's "UNIX Backup and Recovery". AragonX wrote: Is there an easy way to get dump to pu

RE: backup scripts

2003-05-30 Thread Binyon Steve Contr Det 4 AFC2TIG/ASRCC
-Original Message- From: AragonX [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 8:02 AM To: [EMAIL PROTECTED] Subject: Re: backup scripts Is there an easy way to get dump to put multiple volumes on a single tape? > tar is fine for getting a directory and its contents, but

RE: backup scripts

2003-05-30 Thread David Demner
AIL PROTECTED]> To: "RedHat" <[EMAIL PROTECTED]> Subject: backup scripts Date: Wed, 28 May 2003 09:18:45 -0500 Reply-To: [EMAIL PROTECTED] Currently we are using tar (extremely simple script) to back up some files to tape. I know this is probably not the best way of doing it. Is a

Re: backup scripts

2003-05-30 Thread AragonX
Is there an easy way to get dump to put multiple volumes on a single tape? > tar is fine for getting a directory and its contents, but for anything > more complex, it's much harder to live with. cpio and dump are both > able to back up a directory without its contents, which is important if > yo

RE: backup scripts

2003-05-29 Thread Ryan D. Egeland
t; ;-) > > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Messmer > > Sent: Wednesday, May 28, 2003 9:05 PM > > To: [EMAIL PROTECTED] > > Subject: Re: backup scripts > > > > >

RE: backup scripts

2003-05-29 Thread Daevid Vincent
nemployed and would love any offers for coding work with PHP, Linux, SQL, etc... ;-) > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Messmer > Sent: Wednesday, May 28, 2003 9:05 PM > To: [EMAIL PROTECTED] > Subject: Re:

Re: backup scripts

2003-05-29 Thread Gordon Messmer
Richard Humphrey wrote: Is anyone using another method (cpio,dump etc) I use cpio and this script: http://phantom.dragonsdawn.net/~gordon/backup/backup and which do you prefer and why? tar is fine for getting a directory and its contents, but for anything more complex, it's much harder to live wit

Re: backup scripts

2003-05-29 Thread Thierry ITTY
her method (cpio,dump etc) and which do you prefer and >> why? Any examples of scripts using these methods would be helpful as >> well. I would like to make daily backups of only the files that were >> changed, and then make a full backup over the weekend. Is this a >> suff

Re: backup scripts

2003-05-29 Thread Andrew Williams
files to tape. I know this is probably not the best way of doing it. Is > > anyone using another method (cpio,dump etc) and which do you prefer and > > why? Any examples of scripts using these methods would be helpful as > > well. I would like to make daily backups of only the f

Re: backup scripts

2003-05-29 Thread Stéphane Jourdan
examples of scripts using these methods would be helpful as > well. I would like to make daily backups of only the files that were > changed, and then make a full backup over the weekend. Is this a > sufficient way of doing backups? > unless you've got a very small amount of data,

backup scripts

2003-05-29 Thread Richard Humphrey
Currently we are using tar (extremely simple script) to back up some files to tape. I know this is probably not the best way of doing it. Is anyone using another method (cpio,dump etc) and which do you prefer and why? Any examples of scripts using these methods would be helpful as well. I would

Re: Disabling shutdown from login and running scripts on login.

2003-03-13 Thread Anthony E. Greene
no doubt it will change a config file in the users's home directory. You'll just need to find that file and make the mod for all users. >We use a number of login scripts, mainly because of our network >configuration (access rights, protected filesystems etc) but they don't >

Disabling shutdown from login and running scripts on login.

2003-03-13 Thread Cannon, Andrew
quence for everyone except root? (And yes, I know they can just press the power switch, but I'm looking at the accidental reboot, not the malicious reboot). 2) We use a number of login scripts, mainly because of our network configuration (access rights, protected filesystems etc) but the

128 ifcfg-(interface)0:XX files in /etc/sysconfig/network-scripts

2003-01-28 Thread Brad
Hey any one have any info for what happens if you have more than 128 ifcfg-(interface)0:XX files in /etc/sysconfig/network-scripts and what changes if any need to be made if you want more than 128 of them ...?   I _have to_ use the individual file entries and not the range entry that was

Re: how to use script to run perl scripts

2003-01-17 Thread David Busby
Also make sure the shell scripts starts with: #!/bin/sh or something similar. /B - Original Message - From: "Jianping Zhu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 17, 2003 05:53 Subject: how to use script to run perl scripts > &

RE: how to use script to run perl scripts

2003-01-17 Thread Rick Carroll
Rick. -Original Message- From: Jianping Zhu [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 8:53 AM To: [EMAIL PROTECTED] Subject:how to use script to run perl scripts I have a perl file pe.pl --- #!/usr/bin/perl use warnings; $s

how to use script to run perl scripts

2003-01-17 Thread Jianping Zhu
I have a perl file pe.pl --- #!/usr/bin/perl use warnings; $scalar = "5"; print $scalar * $scalar,"\n"; print "Hello World!"; - when i type ./pp.pl it works Now i write anoterh scrpit file pp - #sc

Re: SHELL - Scripts

2002-12-02 Thread Rick Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 moises wrote: | Hello! I need to execute a script in linux that it's going to be always | executing, i mean, when the computer starts its operating system, It | runs a script with a little JAVA program, but this program always is | active, and then, th

SHELL - Scripts

2002-12-02 Thread moises
Hello! I need to execute a script in linux that it's going to be always executing, i mean, when the computer starts its operating system, It runs a script with a little JAVA program, but this program always is active, and then, the operating system doesn't continue with the others instructions beca

Re: Windows scripts on Linux

2002-11-27 Thread Thierry ITTY
IL PROTECTED] 11/27/02 07:19AM >>> >Mikevl wrote: > >>Hi >> >>On the odd occasion I have stored scripts like smb.conf and crontab on >a >>Windows file system i.e. my notebook for transporting from one Linux >machine >>to another. This inevitably le

Re: Windows scripts on Linux

2002-11-27 Thread Steve Howard
will dos2unix do what he wants? Steve Steve Howard Software Trainer Information Technology Services Kennesaw State University 770-423-6895 >>> [EMAIL PROTECTED] 11/27/02 07:19AM >>> Mikevl wrote: >Hi > >On the odd occasion I have stored scripts like smb.conf and

Re: Windows scripts on Linux

2002-11-27 Thread Tjundewo Lawu
Mikevl wrote: Hi On the odd occasion I have stored scripts like smb.conf and crontab on a Windows file system i.e. my notebook for transporting from one Linux machine to another. This inevitably leads to corruption of the file. Characters appear to get added to the end of each line and heaven

Re: Windows scripts on Linux

2002-11-27 Thread Josep M.
Hello. Maybe you can convert with packages as unix2dos or dos2unix,inclosed in Redhat distribution. Or if transfer via ftp as binary,not as text files. Josep Begin of Quote Mikevl : >Hi > >On the odd occasion I have stored scripts like smb.conf and crontab on a >Windows file sy

Re: Windows scripts on Linux

2002-11-26 Thread nate
Mikevl said: > Hi > > On the odd occasion I have stored scripts like smb.conf and crontab on a > Windows file system i.e. my notebook for transporting from one Linux > machine to another. This inevitably leads to corruption of the file. > Characters appear to get added to the en

Windows scripts on Linux

2002-11-26 Thread Mikevl
Hi On the odd occasion I have stored scripts like smb.conf and crontab on a Windows file system i.e. my notebook for transporting from one Linux machine to another. This inevitably leads to corruption of the file. Characters appear to get added to the end of each line and heaven knows where else

RE: init scripts to use and save iproute and tc rules

2002-11-26 Thread Luis Miguel Cruz Miranda
this helps. Good Luck -Original Message- From: Luis Miguel Cruz Miranda [<mailto:[EMAIL PROTECTED]>mailto:[EMAIL PROTECTED]] Sent: Lunes, 25 de Noviembre de 2002 10:26 a.m. To: [EMAIL PROTECTED] Subject: Re: init scripts to use and save iproute and tc rules At 16:56 25/11/2002, you

RE: init scripts to use and save iproute and tc rules

2002-11-25 Thread Euriel Gómez Raga
Title: RE: init scripts to use and save iproute and tc rules Hi there.. maybe you are looking for /etc/sysconfig/static-routes This files defines your routes. I hope this helps. Good Luck -Original Message- From: Luis Miguel Cruz Miranda [mailto:[EMAIL PROTECTED]] Sent

Re: init scripts to use and save iproute and tc rules

2002-11-25 Thread jesse jacobs
> At 16:56 25/11/2002, you wrote: >>On Mon, 25 Nov 2002, Luis Miguel Cruz Miranda wrote: >> >> > Where can I find any init scripts to use and save iproute and tc >> rules? >> >>it sounds like you want the file /etc/rc.local, which is for additional &

Re: init scripts to use and save iproute and tc rules

2002-11-25 Thread Luis Miguel Cruz Miranda
At 16:56 25/11/2002, you wrote: On Mon, 25 Nov 2002, Luis Miguel Cruz Miranda wrote: > Where can I find any init scripts to use and save iproute and tc rules? it sounds like you want the file /etc/rc.local, which is for additional startup stuff that isn't already handled elsewhere

Re: init scripts to use and save iproute and tc rules

2002-11-25 Thread Robert P. J. Day
On Mon, 25 Nov 2002, Luis Miguel Cruz Miranda wrote: > Where can I find any init scripts to use and save iproute and tc rules? it sounds like you want the file /etc/rc.local, which is for additional startup stuff that isn't already handled elsewhere. rday p.s. and please avoid cross

init scripts to use and save iproute and tc rules

2002-11-25 Thread Luis Miguel Cruz Miranda
Where can I find any init scripts to use and save iproute and tc rules? Luis Miguel Cruz Miranda. CCNA - Systems Administrator -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list

RE: shutdown scripts

2002-11-15 Thread Brunner, Brian T.
j [mailto:cj@;itonsite.com.au] >>Sent: Friday, November 15, 2002 12:22 AM >>To: RedHat Mailing List (E-mail) >>Subject: shutdown scripts >> >> >>G'day all >> >>Im using redhat 7.1 >>I would like to run a script when I issue the shutdown >>c

Re: shutdown scripts

2002-11-15 Thread Michael Schwendt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 15 Nov 2002 16:21:34 +1100, cj wrote: > G'day all > > Im using redhat 7.1 > I would like to run a script when I issue the shutdown command or when > the ctrl+alt+del combo. > > what files would I need to edit to be able to run the script on

Re: shutdown scripts (Out of Office)

2002-11-15 Thread Jacob Petrie
I will be out of the office Friday, November 15th. If this is an emergency please contact the IT help desk. Thank you, Jacob Petrie Web Systems/Information Technology Kitsap Community Federal Credit Union [EMAIL PROTECTED] 360.662.2140 -- redhat-list mailing list unsubscribe mailto:redhat-l

Re: shutdown scripts (Out of Office)

2002-11-15 Thread Jacob Petrie
I will be out of the office Friday, November 15th. If this is an emergency please contact the IT help desk. Thank you, Jacob Petrie Web Systems/Information Technology Kitsap Community Federal Credit Union [EMAIL PROTECTED] 360.662.2140 -- redhat-list mailing list unsubscribe mailto:redhat-l

Re: shutdown scripts (Out of Office)

2002-11-15 Thread Jacob Petrie
I will be out of the office Friday, November 15th. If this is an emergency please contact the IT help desk. Thank you, Jacob Petrie Web Systems/Information Technology Kitsap Community Federal Credit Union [EMAIL PROTECTED] 360.662.2140 -- redhat-list mailing list unsubscribe mailto:redhat-l

shutdown scripts

2002-11-14 Thread cj
G'day all Im using redhat 7.1 I would like to run a script when I issue the shutdown command or when the ctrl+alt+del combo. what files would I need to edit to be able to run the script on shutdown? -- redhat-list mailing list unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubsc

RE: scripts

2002-08-01 Thread David Kramer
I will be able to do more from home later tonight if needed... DK -Original Message- From: Ciaron Gogarty [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 3:48 PM To: [EMAIL PROTECTED] Subject: scripts Hi all, I was wondering if somebody can tell me where/what to enter to

scripts

2002-08-01 Thread Ciaron Gogarty
Hi all, I was wondering if somebody can tell me where/what to enter to keep an interface in promiscious mode through a reboot. I can't seem to find a reference to it anywhere do I modify "eth0-cfg"?? Your help is much appreciated. rgds, Ciaron -- redhat-list mailing list Unsubscribe mail

Re: compiling bash scripts

2002-07-26 Thread Todd A. Jacobs
On Fri, 26 Jul 2002, Ed Wilts wrote: > And while it's running, the user simply copies the file out of /tmp and > your encryption is shot. Well, he *could* futz with file permissions, but you're essentially right. This is why closed-source security solutions are almost always bad ju-ju: no pe

Re: compiling bash scripts

2002-07-26 Thread Muhammad Faisal Rauf Danka
rote: >On Thu, Jul 25, 2002 at 04:23:18PM -0700, Muhammad Faisal Rauf Danka wrote: >> I have made a tool for compiling shell scripts. >> basically, my tool randomly generates a key and encrypts whole shell >> script, then inserts them both in a template of .c code where the key >

Re: compiling bash scripts

2002-07-26 Thread Joachim Breuer
Muhammad Faisal Rauf Danka <[EMAIL PROTECTED]> writes: > printf'ing in /tmp was an idea given to him. > My tool does not printf it out in /tmp. > you wouldn't de-compile it in 5 minutes, One could easily make another > script to tarball whole /tmp after every 2 seconds and will eventually > get t

RE: compiling bash scripts

2002-07-25 Thread Muhammad Faisal Rauf Danka
I have made a tool for compiling shell scripts. basically, my tool randomly generates a key and encrypts whole shell script, then inserts them both in a template of .c code where the key and encrypted text are both written and on it's execution, text in decryped using the very key fou

RE: compiling bash scripts

2002-07-25 Thread Rev. David P. Giffen
Leonardo Rodrigues > Sent: Wednesday, June 12, 2002 8:16 AM > To: redhat user list > Subject: compiling bash scripts > > > > Hello Guys, > > I have some bash scripts ( they are not very complicated, so bash is > enough ) and i'd like to deploy them on some

Re: compiling bash scripts

2002-06-12 Thread David Talkington
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Keith Morse wrote: >> Well, I hope you understand it now. I'm not trying to hide anything, i >> just want to make my life easier :) This is decending into silliness. You _are_ trying to prevent access to the code, for whatever reason, so let's n

Re: compiling bash scripts

2002-06-12 Thread Keith Morse
t; > > > > Then take a look at 'chattr' and specifically the immutable option. If > > they have root access (they shouldn't, right?) then you might try some > > more draconian such as LIDS to keep their naughty hands off the scripts. As far as I am aware,

Re: compiling bash scripts

2002-06-12 Thread Leonardo Rodrigues
le option. If > they have root access (they shouldn't, right?) then you might try some > more draconian such as LIDS to keep their naughty hands off the scripts. ___ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list

Re: compiling bash scripts

2002-06-12 Thread Keith Morse
and, sometimes, getting the whole system to not work > correctly. > > So I was thinking on 'compile' those base scripts ( or even rewrite them > in some compilable language if 'scramble' them in bash is not possible ) > simply to restrict changes on it. All t

Re: compiling bash scripts

2002-06-12 Thread Leonardo Rodrigues
g to hide ). All the necessary parameters can be tweaked using one conf file used by the script. The problem is that some customers are making modifications on the main initialization script and, sometimes, getting the whole system to not work correctly. So I was thinking on 'compile

Re: compiling bash scripts

2002-06-12 Thread Gordon Messmer
On Wed, 2002-06-12 at 06:16, Leonardo Rodrigues wrote: > > I have some bash scripts ( they are not very complicated, so bash is > enough ) and i'd like to deploy them on some customer machines. But it would > be very nice if i could, somehow, 'compile' them so cus

Re: compiling bash scripts

2002-06-12 Thread David Talkington
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leonardo Rodrigues wrote: >Question is: is it possible to 'compile' bash script of, somehow, >scramble it source ? Rewrite it in C. ;-) Seriously. If it's large and you want it fast, that's the usual way. - -d - -- David Talkington PGP

Re: compiling bash scripts

2002-06-12 Thread Muhammad Faisal Rauf Danka
Welcome future BillGates!!! why would you want to hide your source when you're making those scripts on an opensource platform and they're designed to work on an opensource platform!!! weird... anyways you can play with system() function in C language and put eveyr bash line in a syste

compiling bash scripts

2002-06-12 Thread Leonardo Rodrigues
Hello Guys, I have some bash scripts ( they are not very complicated, so bash is enough ) and i'd like to deploy them on some customer machines. But it would be very nice if i could, somehow, 'compile' them so customers wouldnt be able to see the source of the script.

RE: RedHat Scripts

2002-05-19 Thread Ted Gervais
ative and will no doubt help me continue on to extensions of these scripts. I wish there was a more automatic way to do these scripts, but I guess not. Or at least not at this moment. A simple 'fill-in-the-blanks' process. Something where you would enter (on a form) what

RE: RedHat Scripts

2002-05-18 Thread Hugh E Cruickshank
Hi Ted: I just went through some of this and there are a couple of things to watch out for. See the "init/rc scripts" thread in the maillist archives for details: https://listman.redhat.com/mailman/private/redhat-list/2002-April/137519.htm l Basically you will need to: 1. Write a

RedHat Scripts

2002-05-18 Thread Ted Gervais
bring that application up, rather than just calling it from where it sleeps. Of course I sometimes also call some of these applications from the /etc/rc.d/rc.local. Rather than through proper scripts etc.. I want to do it the right way, at least for once. Is there a step by step process I can

Re: init/rc scripts

2002-05-01 Thread Vidiot
>Probaly should be in a man or info page somewhere but I don't think that >init is the one it should be in since it does say that on Sys V systme >it works closely with the scripts in init.d: > >CONFORMING TO > Init is compatible with the System V init. It

Re: init/rc scripts

2002-05-01 Thread Bret Hughes
think that init is the one it should be in since it does say that on Sys V systme it works closely with the scripts in init.d: CONFORMING TO Init is compatible with the System V init. It works closely together with the scripts in the directories /etc/init.d and /

Re: init/rc scripts

2002-05-01 Thread Vidiot
>use the source Luke. That is what man pages are for. It should have been in there, specifically the init man page. Not everyone can dig through sources. MB -- e-mail: [EMAIL PROTECTED] It is God's job to forgive bin Laden. It is our job to set up the mee

Re: init/rc scripts

2002-05-01 Thread Bret Hughes
ing the appropriate sections with your commands would have > allowed it to work from time one. But, neither of us would have learned > about the process of what is going on. I still can't find it documented. use the source Luke. from rc.d/rc if [ -d /etc/rc$runlevel.d ]; then

Re: init/rc scripts

2002-05-01 Thread Bill Crawford
On Tue, 30 Apr 2002, Vidiot wrote: > I don't know where you were placing some test lines, but add these and > report back. I can't create a dummy init.d script and test it, since my > Linux box is my very popular web/ftp server. Bouncing it up and down > will cause all kinds of grief with users

Re: init/rc scripts

2002-04-30 Thread Vidiot
>Give the man a cigar! > >That did the trick. I new it there must be something that was >stopping the script from running. The sshd script is one of the simplist ones there. Copying that script and replacing the appropriate sections with your commands would have allowed it to work from time one.

RE: Re[2]: init/rc scripts

2002-04-30 Thread Hugh E Cruickshank
> -Original Message- > From: Vidiot > Sent: Tuesday, April 30, 2002 11:19 PM > >Hello Hugh, > > > >Try this... (It's just a WAG) > > > >Add a line... > >touch /var/lock/subsys/fapsrv > >to the "start" portion of your script. > >and of course it's counterpart... > >rm -f /var/lock/subsys/fa

RE: init/rc scripts

2002-04-30 Thread Hugh E Cruickshank
April 30, 2002 10:06 PM > > Hello Hugh, > > Tuesday, April 30, 2002, 10:27:28 PM, you textually orated: > > >> >It really does not matter what those scripts do as the fapsrv > >> >script in /etc/init.d/ never gets executed with the "stop" > >

Re: Re[2]: init/rc scripts

2002-04-30 Thread Vidiot
>Hello Hugh, > >Try this... (It's just a WAG) > >Add a line... >touch /var/lock/subsys/fapsrv >to the "start" portion of your script. >and of course it's counterpart... >rm -f /var/lock/subsys/fapsrv >to the "stop" portion. > >IIRC, RHL needs to see that the thing was started in order to execute t

Re[2]: init/rc scripts

2002-04-30 Thread Brian Ashe
Hello Hugh, Tuesday, April 30, 2002, 10:27:28 PM, you textually orated: >> >It really does not matter what those scripts do as the fapsrv >> >script in /etc/init.d/ never gets executed with the "stop" >> >argument. Try this... (It's just a WAG) Add

Re: init/rc scripts

2002-04-30 Thread Vidiot
>> If you do "/etc/init.d/fapsrv start" and then follow it with >> "/etc/init.d/fapsrv stop", does the server actually start and then stop? > >Sorry, did miss saying that but yes I did test and, except for not >having RUNLEVEL defined, it does execute correctly to start and >stop the database serv

RE: init/rc scripts

2002-04-30 Thread Hugh E Cruickshank
> -Original Message- > From: Vidiot > Sent: Tuesday, April 30, 2002 6:36 PM > > >It really does not matter what those scripts do as the fapsrv > >script in /etc/init.d/ never gets executed with the "stop" > >argument. I have modified the fapsrv s

Re: init/rc scripts

2002-04-30 Thread Vidiot
>It really does not matter what those scripts do as the fapsrv >script in /etc/init.d/ never gets executed with the "stop" >argument. I have modified the fapsrv script by adding an echo >of the script name and command line params and piped it to a >file in /tmp (appended)

RE: init/rc scripts

2002-04-30 Thread Hugh E Cruickshank
; ideas. I don't remember if you said that running the script manually will > actually stop your server. If that works, then it should work > from init.d. > It really does not matter what those scripts do as the fapsrv script in /etc/init.d/ never gets executed with the "stop

Re: init/rc scripts

2002-04-30 Thread Vidiot
>I have completed changing the fapsrv script, removed the old hard >links and used chkconfig --add fapsrv to add the new links with >the same result. The "start" instances execute but not the "stop" >instances. > >I should note that I am not starting and stopping a service. I am >attempting to ex

Re: init/rc scripts

2002-04-30 Thread Vidiot
>Thanks for the info. I was trying very much not to have OS specific >scripts but it looks like I will have to have a Linux specific >version just for the rc script. While it has chkconfig stuff in the script, it is part of the comments, so the script will work on any Unix box. MB -

RE: init/rc scripts

2002-04-30 Thread Hugh E Cruickshank
Hugh E Cruickshank, Forward Software, www.forward-software.com > -Original Message- > From: Hugh E Cruickshank > Sent: Tuesday, April 30, 2002 3:12 PM > > Hi "MB": > > Thanks for the info. I was trying very much not to have OS specific > scripts but it looks li

RE: init/rc scripts

2002-04-30 Thread Hugh E Cruickshank
Hi "MB": Thanks for the info. I was trying very much not to have OS specific scripts but it looks like I will have to have a Linux specific version just for the rc script. Thanks again for the info. Regards, Hugh -- Hugh E Cruickshank, Forward Software, www.forward-so

Re: init/rc scripts

2002-04-30 Thread Vidiot
link it to: > > /etc/rc0.d/K01fapsrv > /etc/rc2.d/S99fapsrv > /etc/rc3.d/S99fapsrv > /etc/rc5.d/S99fapsrv > /etc/rc6.d/K01fapsrv > > >The startup scripts (S99fapsrv) work fine but the shutdown scripts >(K01fapsrv) do not seem to execute at all. I have also tried

init/rc scripts

2002-04-30 Thread Hugh E Cruickshank
c/rc0.d/K01fapsrv /etc/rc2.d/S99fapsrv /etc/rc3.d/S99fapsrv /etc/rc5.d/S99fapsrv /etc/rc6.d/K01fapsrv The startup scripts (S99fapsrv) work fine but the shutdown scripts (K01fapsrv) do not seem to execute at all. I have also tried installing the shutdown scripts (K01fapsrv) in the rc2/3/5

Re: [REDHAT] Re: Help with scripts...URGENT

2002-03-29 Thread David Talkington
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Kramer wrote: >I missed the beginning of this thread, but if you're just trying to >automatically ftp a file from a server, look at wget. > >wget ftp://other.server.com/path/to/file >Many options. Very powerful. wget seems to have trouble wi

Re: [REDHAT] Re: Help with scripts...URGENT

2002-03-29 Thread David Kramer
On Thu, 28 Mar 2002, fred smith wrote: > On Thu, Mar 28, 2002 at 12:27:21PM -0600, Ed Wilts wrote: > > On Wed, Mar 27, 2002 at 12:06:10PM +, Alan Peery wrote: > > > > > > I don't know if you can drive ftp with a single command line, something > > > like > > > > > > echo "get foo" > fred >

Re: Help with scripts...URGENT

2002-03-28 Thread fred smith
On Thu, Mar 28, 2002 at 12:27:21PM -0600, Ed Wilts wrote: > On Wed, Mar 27, 2002 at 12:06:10PM +, Alan Peery wrote: > > > > I don't know if you can drive ftp with a single command line, something > > like > > > > echo "get foo" > fred > > ftp -ine < fred > > echo $? > > You've got a few ch

Re: Help with scripts...URGENT

2002-03-28 Thread Ed Wilts
On Wed, Mar 27, 2002 at 12:06:10PM +, Alan Peery wrote: > > I don't know if you can drive ftp with a single command line, something > like > > echo "get foo" > fred > ftp -ine < fred > echo $? You've got a few choices. ncftpls will give you a directory listing on the remote server. ncftp

  1   2   3   >