Re: [SOLVED] Re: Shell Script Help

2019-05-06 Thread Patrick Bartek
On Mon, 6 May 2019 15:16:09 -0500 David Wright wrote: > On Mon 06 May 2019 at 10:56:47 (-0700), Patrick Bartek wrote: > > On Mon, 6 May 2019 13:08:05 -0400 Greg Wooledge > > wrote: > > > On Mon, May 06, 2019 at 09:41:58AM -0700, Patrick Bartek wrote: > > > > On Mon, 6 May 2019 10:24:24 -040

Re: [SOLVED] Re: Shell Script Help

2019-05-06 Thread David Wright
On Mon 06 May 2019 at 10:56:47 (-0700), Patrick Bartek wrote: > On Mon, 6 May 2019 13:08:05 -0400 Greg Wooledge wrote: > > On Mon, May 06, 2019 at 09:41:58AM -0700, Patrick Bartek wrote: > > > On Mon, 6 May 2019 10:24:24 -0400 Greg Wooledge > > > wrote: > > > > for dir in ab*/; do > > > >

Re: Shell Script Help

2019-05-06 Thread Dan Purgert
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Greg Wooledge wrote: > [...] > You said you had twenty-something directories named ab01, ab02, etc. > So it should have matched unless you ran it from the wrong place, > or unless you lied about your directory names. > > But nobody would EVER lie abo

[SOLVED] Re: Shell Script Help

2019-05-06 Thread Patrick Bartek
On Mon, 6 May 2019 13:08:05 -0400 Greg Wooledge wrote: > On Mon, May 06, 2019 at 09:41:58AM -0700, Patrick Bartek wrote: > > On Mon, 6 May 2019 10:24:24 -0400 > > Greg Wooledge wrote: > > > for dir in ab*/; do > > > name=${dir%/} > > > enfuse --output "$name.jpg" --compression=97 "$dir

Re: Shell Script Help

2019-05-06 Thread Greg Wooledge
On Mon, May 06, 2019 at 09:41:58AM -0700, Patrick Bartek wrote: > On Mon, 6 May 2019 10:24:24 -0400 > Greg Wooledge wrote: > > for dir in ab*/; do > > name=${dir%/} > > enfuse --output "$name.jpg" --compression=97 "$dir"/*.jpg > > done > > Typed in as a single line with a semi-colon at en

Re: Shell Script Help

2019-05-06 Thread Patrick Bartek
On Mon, 6 May 2019 18:12:55 +0200 john doe wrote: > On 5/6/2019 4:24 PM, Greg Wooledge wrote: > > On Mon, May 06, 2019 at 06:57:00AM -0700, Patrick Bartek wrote: > >> I want a script that allows commandline only applications that can't batch > >> process to batch process. A speciifc example. I

Re: Shell Script Help

2019-05-06 Thread Patrick Bartek
On Mon, 6 May 2019 10:24:24 -0400 Greg Wooledge wrote: > On Mon, May 06, 2019 at 06:57:00AM -0700, Patrick Bartek wrote: > > I want a script that allows commandline only applications that can't batch > > process to batch process. A speciifc example. I will use the app > > enfuse, an exposure mer

Re: Shell Script Help

2019-05-06 Thread john doe
On 5/6/2019 4:24 PM, Greg Wooledge wrote: > On Mon, May 06, 2019 at 06:57:00AM -0700, Patrick Bartek wrote: >> I want a script that allows commandline only applications that can't batch >> process to batch process. A speciifc example. I will use the app >> enfuse, an exposure merging program, a po

Re: Shell Script Help

2019-05-06 Thread Greg Wooledge
On Mon, May 06, 2019 at 06:57:00AM -0700, Patrick Bartek wrote: > I want a script that allows commandline only applications that can't batch > process to batch process. A speciifc example. I will use the app > enfuse, an exposure merging program, a poor man's HDR. > > patrick@Debian9:~/Work$ enfu

Re: Shell Script Help

2019-05-06 Thread Patrick Bartek
On Sat, 4 May 2019 17:54:28 -0700 Will Mengarini wrote: > * Patrick Bartek [19-05/04=Sa 08:08 -0700]: > > [...] Perform an operation on files in unique, sequential > > directories [...] never more than 99 -- usually a lot > > less. The actual number will vary job to job. [...] > > If the se

Re: Shell Script Help

2019-05-06 Thread Patrick Bartek
On Sat, 4 May 2019 15:34:16 -0500 Richard Owlett wrote: > On 05/04/2019 10:08 AM, Patrick Bartek wrote: > > Hi! All, > > > > Want to create a simple, one liner to type in to automate what I've > > been doing manually: [*SNIP*] > > I think the critical question is,> *WHAT* do you wish to acco

Re: Shell Script Help

2019-05-06 Thread Patrick Bartek
On Sat, 4 May 2019 20:21:03 +0200 john doe wrote: > On 5/4/2019 5:08 PM, Patrick Bartek wrote: > > Hi! All, > > > > Want to create a simple, one liner to type in to automate what I've > > been doing manually: Perform an operation on files in unique, > > sequential directories, save the results of

Re: Shell Script Help

2019-05-04 Thread Will Mengarini
* Patrick Bartek [19-05/04=Sa 08:08 -0700]: > [...] Perform an operation on files in unique, sequential > directories [...] never more than 99 -- usually a lot > less. The actual number will vary job to job. [...] If the sequentially-numbered directories already exist: `man find` Else: for

Re: Shell Script Help

2019-05-04 Thread Richard Owlett
On 05/04/2019 10:08 AM, Patrick Bartek wrote: Hi! All, Want to create a simple, one liner to type in to automate what I've been doing manually: [*SNIP*] I think the critical question is,> *WHAT* do you wish to accomplish?

Re: Shell Script Help

2019-05-04 Thread john doe
On 5/4/2019 5:08 PM, Patrick Bartek wrote: > Hi! All, > > Want to create a simple, one liner to type in to automate what I've > been doing manually: Perform an operation on files in unique, > sequential directories, save the results of the operations for each > directory with a file name of that di

Shell Script Help

2019-05-04 Thread Patrick Bartek
Hi! All, Want to create a simple, one liner to type in to automate what I've been doing manually: Perform an operation on files in unique, sequential directories, save the results of the operations for each directory with a file name of that directory in the directory the target directories reside

Re: Automatic Backup Script Help

2012-05-23 Thread Kushal Kumaran
On Wed, May 23, 2012 at 1:04 PM, Craig A. Adams wrote: > Thank you for the feedback Jon. :-) > > > On 23/05/2012 09:12 AM, Jon Dowland wrote: >> >>   { sleep 60; /data/backups/scripts/backup-disk-1.sh }& >> >> But I don't see why you even need the sleep. > > > I agree. I suspect using sleep will m

Re: Automatic Backup Script Help

2012-05-23 Thread Craig A. Adams
Thank you for the feedback Jon. :-) On 23/05/2012 09:12 AM, Jon Dowland wrote: { sleep 60; /data/backups/scripts/backup-disk-1.sh }& But I don't see why you even need the sleep. I agree. I suspect using sleep will merely suspend udev operations as well. should be backticks here so that d

Re: Automatic Backup Script Help

2012-05-23 Thread Jon Dowland
On Wed, May 23, 2012 at 08:30:29AM +0200, Craig A. Adams wrote: > /data/backups/scripts/start-disk-1.sh > #!/bin/bash > echo /data/backups/scripts/backup-disk-1.sh | at now + 1 minute > > Is this the correct way to call the backup script, or is there a better way? It doesn't seem like a bad idea;

Automatic Backup Script Help

2012-05-22 Thread Craig A. Adams
Hi, I am trying to setup a basic backup script for a Debian 6.0.5 server and am wanting to validate the scripts I have so far. Here is the scenario... The server has 2 x 1Tb hard drives in RAID 1 config. A third 1Tb hard drive is used for scheduled rsync snapshots. I also have 5 x USB 3.0

renamer script help..

2010-02-21 Thread Vadkan Jozsef
The script: http://pastebin.ca/1804613 but it's not working too well: http://pastebin.ca/1804612 e.g.: the script makes "arviztur-ukorfurogep" from "árvíztűrő tükörfúrógép", when it should be: "arvizturo-tukorfurogep" Has someone a similar script, that works? thanks:\ ps.: i tried it under luci

Re: postfix+sasl+dovecot script help!

2009-11-26 Thread Didar Hossain
On Thu, Nov 26, 2009 at 3:20 PM, Tudod Ki wrote: > > postfix+sasl+dovecot script help! > > Hi everybody! > > I am trying to get the solution for days now, and I don't know what to do > really :S > > I just want to write a script, what does automatically ins

postfix+sasl+dovecot script help!

2009-11-26 Thread Tudod Ki
postfix+sasl+dovecot script help! Hi everybody! I am trying to get the solution for days now, and I don't know what to do really :S I just want to write a script, what does automatically install postfix, dovecot, and it configures sasl authentication for the clients. I'm here righ

Re: [OT] Bash Script Help

2005-05-24 Thread Colin Ingram
Fred L Youhanaie wrote: Hi Colin, I have had to deal with this sort of things on quite a number of occasions, and I have my own little perl script, which is very similar to Paul's, mine came straight out of the perl cookbook ;-) If you replace Paul's last print statement with: print j

Re: [OT] Bash Script Help

2005-05-24 Thread Colin Ingram
Almut Behrens wrote: I assume I can make the first subexpression match zero or one time. In that situation if the first subexpression doesn't match does $1=null? ...exactly (though it's 'undef', not null, strictly speaking). And the nice thing is that Perl doesn't segfault or throw fat

[Fwd: Re: [OT] Bash Script Help]

2005-05-24 Thread Fred L Youhanaie
Apologies Colin, the reply was meant to go to the list :-( Fred L Youhanaie wrote: Hi Colin, Colin Ingram wrote: Paul Smith wrote: I was hoping to make this solution as simple as possible, so that my colleagues (most won't know perl or any other scripting language, but have experience wi

Re: [OT] Bash Script Help

2005-05-23 Thread Almut Behrens
On Mon, May 23, 2005 at 09:50:12PM -0500, Colin Ingram wrote: > Almut Behrens wrote: > > > > ... | perl -pe 's/^(\d+):(\d+):(\d+)/$1*60**2 + $2*60 + $3/e' > > > >in case the time string represents "hours:min:sec". > >If it's "min:sec.msec" (looks like it to me...), then it'd be > > > > > its actua

Re: [OT] Bash Script Help

2005-05-23 Thread Colin Ingram
Almut Behrens wrote: On Mon, May 23, 2005 at 04:17:44PM -0500, Colin Ingram wrote: (...) this creates a file that looks like this: 00:00.000, 3.24557e+007 00:02.510, 3.23482e+007 00:05.007, 3.24578e+007 00:07.507, 2.77091e+007 ---snip--- I now need to covert the "elapse time" column from t

Re: [OT] Bash Script Help

2005-05-23 Thread Colin Ingram
Paul Smith wrote: %% Colin Ingram <[EMAIL PROTECTED]> writes: ci> This is not a debian specific question but I thought some of you ci> could help. I am writing a shell script to parse a CSV file Why would you choose bash to do this? The shell is great for running commands, but it's really

Re: [OT] Bash Script Help

2005-05-23 Thread Paul Smith
%% Colin Ingram <[EMAIL PROTECTED]> writes: ci> This is not a debian specific question but I thought some of you ci> could help. I am writing a shell script to parse a CSV file Why would you choose bash to do this? The shell is great for running commands, but it's really poor at parsing tex

Re: [OT] Bash Script Help

2005-05-23 Thread Marty
Colin Ingram wrote: This is not a debian specific question but I thought some of you could help. I am writing a shell script to parse a CSV file to prepare it for input into a program which will fit the data by a non-linear least squares fitting routine. This program takes input from a file

Re: [OT] Bash Script Help

2005-05-23 Thread Almut Behrens
On Mon, May 23, 2005 at 04:17:44PM -0500, Colin Ingram wrote: > (...) > > this creates a file that looks like this: > 00:00.000, 3.24557e+007 > 00:02.510, 3.23482e+007 > 00:05.007, 3.24578e+007 > 00:07.507, 2.77091e+007 > ---snip--- > > I now need to covert the "elapse time" column from the strin

[OT] Bash Script Help

2005-05-23 Thread Colin Ingram
This is not a debian specific question but I thought some of you could help. I am writing a shell script to parse a CSV file to prepare it for input into a program which will fit the data by a non-linear least squares fitting routine. This program takes input from a file containing two column

Re: script help

2004-12-29 Thread Darryl Clarke
On Wed, 29 Dec 2004 15:26:17 +0100, Bob Alexander <[EMAIL PROTECTED]> wrote: > I keep a few different kernel source trees under /usr/src and each of > them has a different .config file. > > Part of my pre-backup script I would like to run a command such as > > find /usr/src -name .config > > for

Re: script help

2004-12-29 Thread Joris Huizer
Bob Alexander wrote: I keep a few different kernel source trees under /usr/src and each of them has a different .config file. Part of my pre-backup script I would like to run a command such as find /usr/src -name .config for example: /usr/src/kernel-source-2.6.9-rja/.config /usr/src/linux-2.6.10-

script help

2004-12-29 Thread Bob Alexander
I keep a few different kernel source trees under /usr/src and each of them has a different .config file. Part of my pre-backup script I would like to run a command such as find /usr/src -name .config for example: /usr/src/kernel-source-2.6.9-rja/.config /usr/src/linux-2.6.10-rja/.config and for e

Re: Could you give an example iptables script? (Help... I want to learn this stuff)

2004-01-01 Thread Jan Minar
On Tue, Dec 30, 2003 at 01:57:21PM -0700, [EMAIL PROTECTED] wrote: > Quoting Joris Huizer <[EMAIL PROTECTED]>: > > BTW, if something weird happens, how can I shut it down again? (you > > never know...) I just wanted to recommend /etc/init.d/iptables, and looked into the script, but... It contain

(solved) Re: Could you give an example iptables script? (Help... I want to learn this stuff)

2004-01-01 Thread Joris Huizer
[EMAIL PROTECTED] wrote: Quoting Joris Huizer <[EMAIL PROTECTED]>: BTW, if something weird happens, how can I shut it down again? (you never know...) iptables -F iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT iptables -t nat -F ought to do it. This won't clear ou

Re: Could you give an example iptables script? (Help... I want to learn this stuff)

2003-12-30 Thread mickey
Quoting Joris Huizer <[EMAIL PROTECTED]>: > BTW, if something weird happens, how can I shut it down again? (you > never know...) iptables -F iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT iptables -t nat -F ought to do it. This won't clear out user-defined changes

Re: Could you give an example iptables script? (Help... I want to learn this stuff)

2003-12-30 Thread Joris Huizer
Shaun Crossley wrote: On Wed, Dec 24, 2003 at 10:06:25AM +0100, Joris Huizer wrote: Hello everybody, I'm planning to use iptables as it seems it's powerfull and it will let me choose really what is allowed and what is not (because of p2p stuff etc. which allways keeps complaining - and out of c

Re: Could you give an example iptables script? (Help... I want to learn this stuff)

2003-12-24 Thread Shaun Crossley
On Wed, Dec 24, 2003 at 10:06:25AM +0100, Joris Huizer wrote: > Hello everybody, > > I'm planning to use iptables as it seems it's powerfull and it will let > me choose really what is allowed and what is not (because of p2p stuff > etc. which allways keeps complaining - and out of curiosity) >

Re: Could you give an example iptables script? (Help... I want to learn this stuff)

2003-12-24 Thread Anthony Campbell
On 24 Dec 2003, Joris Huizer wrote: > Hello everybody, > > I'm planning to use iptables as it seems it's powerfull and it will let > me choose really what is allowed and what is not (because of p2p stuff > etc. which allways keeps complaining - and out of curiosity) > > However, I never used ipta

Could you give an example iptables script? (Help... I want to learn this stuff)

2003-12-24 Thread Joris Huizer
Hello everybody, I'm planning to use iptables as it seems it's powerfull and it will let me choose really what is allowed and what is not (because of p2p stuff etc. which allways keeps complaining - and out of curiosity) However, I never used iptables before and it looks like it's got some lea

Re: IPtables and DMZ script help

2003-10-18 Thread Mehmet AK
tober 19, 2003 5:28 AM Subject: IPtables and DMZ script help > Hi there guys is there any one that can help me on IPtables and DMZ.> Perferably have a pre made script that I can mod to suit my needs..> This is what I need t

IPtables and DMZ script help

2003-10-18 Thread Steve
Hi there guys is there any one that can help me on IPtables and DMZ. Perferably have a pre made script that I can mod to suit my needs.. This is what I need to do. External Network (BAD) | | eth1 | ppp0 ---

Re: Script help

2003-09-07 Thread Jeff Elkins
On Sunday 07 September 2003 1:10 am, Dave Carrigan wrote: >On Sat, Sep 06, 2003 at 10:03:09PM -0400, Jeff Elkins wrote: >> I'm doing a lot of work with a Sharp Zaurus which requires several >> re-flashes of the box daily - With my initrd.bin, ssh keys on the Z >> regenerate with each flash. As a co

Re: Script help

2003-09-06 Thread Dave Carrigan
On Sat, Sep 06, 2003 at 10:03:09PM -0400, Jeff Elkins wrote: > I'm doing a lot of work with a Sharp Zaurus which requires several re-flashes > of the box daily - With my initrd.bin, ssh keys on the Z regenerate with each > flash. As a consequence, my host .ssh/known_hosts is frequently outdated

Re: Script help

2003-09-06 Thread Karsten M. Self
on Sat, Sep 06, 2003 at 10:03:09PM -0400, Jeff Elkins ([EMAIL PROTECTED]) wrote: > I'm doing a lot of work with a Sharp Zaurus which requires several > re-flashes of the box daily - With my initrd.bin, ssh keys on the Z > regenerate with each flash. As a consequence, my host .ssh/known_hosts > is

Script help

2003-09-06 Thread Jeff Elkins
I'm doing a lot of work with a Sharp Zaurus which requires several re-flashes of the box daily - With my initrd.bin, ssh keys on the Z regenerate with each flash. As a consequence, my host .ssh/known_hosts is frequently outdated and I must edit it to remove references to z,xxx.xxx.xxx.xxx. I'd

Re: script help

2000-11-09 Thread Erik Steffl
man find erik Chris Mason wrote: > > I need to come up with a bash shell script that deletes all the files in a > folder older than N days. I'm not sure how to test for file age so I can't > get it done myself, can someone suggest a way? > > Chris Mason > Box 340, The Valley, Anguilla

Re: script help

2000-11-07 Thread Mike Quin
"Chris Mason" <[EMAIL PROTECTED]> writes: > I need to come up with a bash shell script that deletes all the files in a > folder older than N days. I'm not sure how to test for file age so I can't > get it done myself, can someone suggest a way? use find(1) with the mtime flag, e.g. find /tmp -t

script help

2000-11-07 Thread Chris Mason
I need to come up with a bash shell script that deletes all the files in a folder older than N days. I'm not sure how to test for file age so I can't get it done myself, can someone suggest a way? Chris Mason Box 340, The Valley, Anguilla, British West Indies Tel: 264 497 5670 Fax: 264 497 8463 US

Re: Script help...............

1998-10-27 Thread Phillip Neumann
Michael Beattie wrote: > On Mon, 26 Oct 1998, Phillip Neumann wrote: > > > Hi debian world... > > > > > > > > > > Im not know very much about scripts so i need some help with one.. > > > > Here my situation: > > > > A script will be executed when i call to my linux box... here it is: > > > > /etc/

RE: Script help...............

1998-10-27 Thread Shaleh
Dunno why you are doing it this way so let me ask. Why are you not using the scripts in /etc/ppp/ip-{up,down}?? The IP address of the connection is passed to the scripts on login. So you are guaranteed to get a good IP. If this is not useful for some reason contact me and I can get your script

Re: Script help...............

1998-10-27 Thread Michael Beattie
On Mon, 26 Oct 1998, Phillip Neumann wrote: > Hi debian world... > > > > > Im not know very much about scripts so i need some help with one.. > > Here my situation: > > A script will be executed when i call to my linux box... here it is: > > /etc/init.d/xringd stop > /root/IP_MAIL > pon in

Script help...............

1998-10-27 Thread Phillip Neumann
Hi debian world... Im not know very much about scripts so i need some help with one.. Here my situation: A script will be executed when i call to my linux box... here it is: /etc/init.d/xringd stop /root/IP_MAIL pon incomingcall< /etc/init.d/xringd start

Re: sed/grep script help

1997-08-07 Thread Oliver Elphick
In message <[EMAIL PROTECTED]>, write s: >I'm modifying the pinepgp scripts to work with PGP 5.0... the output is >somewhat different then the previous version. Anyhow I'm new to these >programs and heres the output: > >Good signature made 1997-08-06 15:10 GMT by key: > 1024 bits, Key

sed/grep script help

1997-08-06 Thread Paul Miller
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm modifying the pinepgp scripts to work with PGP 5.0... the output is somewhat different then the previous version. Anyhow I'm new to these programs and heres the output: Good signature made 1997-08-06 15:10 GMT by key: 1024 bits, Key ID 8C111B46

Re: Script help

1997-06-12 Thread gvl
kill -l for a list of the names attached to the numbers man 7 signal for a more exhaustive explanation. On 10 Jun 97, Andy J. Smith wrote regarding: __ Re: Script help __ > On Mon, 9 Jun 1997, J. Paul Reed wrote: > > [different types of signals] > > > Do you know what -1