Re: SMS to GSM phones-help needed in scripting

2003-10-20 Thread Chris Wilson
If you are able to send an sms through the web page you could just scrape the page and send it through there. Otherwise: Do you want to send the sms through your GSM phone/modem over a serial port? -- Chris On Sat, 2003-10-18 at 01:04, Harish Sabnani wrote: > Hi All, > I am looking for an applic

SMS to GSM phones-help needed in scripting

2003-10-17 Thread Harish Sabnani
Hi All, I am looking for an application thru which I can send SMS to GSM phones in specific to the Omantel network.I have downloaded various applications like smash,linuxsms,jlinuxsms but I am not able to modify the script to my requirement. Any one who has expertise in this area?Help will b

Re: Scripting questions

2003-09-24 Thread Brenden T.
Abdussamad Abdurrazzaq wrote: Hello Please help me with these basic scripting questions. How do you tell the path of the current directory? Is there an equivalent to the Left$ & Right$ functions found in BASIC in Linux scripting? What I mean is how do you extract a given number of charac

Re: Scripting questions

2003-09-24 Thread Nurullah Akkaya
correct me if i am wrong so you want to know where you are on the system rigth ? so u can use pwd command that will tell the exact place where you are.. -- Nurullah Akkaya [EMAIL PROTECTED] Registered Linux User #301438 What lies behind us and what lies before us are tiny matters compared to w

Re: Scripting questions

2003-09-24 Thread Sean Estabrooks
On Wed, 24 Sep 2003 17:18:36 + Abdussamad Abdurrazzaq <[EMAIL PROTECTED]> wrote: > Hello > > Please help me with these basic scripting questions. How do you tell the > path of the current directory? Assuming you mean Bash scripting # echo $PWD > Is there an e

Re: Scripting questions

2003-09-24 Thread Volker Kroll
On Wed, 2003-09-24 at 19:18, Abdussamad Abdurrazzaq wrote: > Please help me with these basic scripting questions. In which language, do you plan to program? > How do you tell the path > of the current directory? in the bash it is pwd [EMAIL PROTECTED]:~> pwd /home/kroll &

Scripting questions

2003-09-24 Thread Abdussamad Abdurrazzaq
Hello Please help me with these basic scripting questions. How do you tell the path of the current directory? Is there an equivalent to the Left$ & Right$ functions found in BASIC in Linux scripting? What I mean is how do you extract a given number of characters from the left or right

Re: Scripting password

2003-09-05 Thread Cameron Simpson
On 23:39 03 Sep 2003, Patrick Nelson <[EMAIL PROTECTED]> wrote: | Writing a script that asks for a pass-phrase to use specific features of | the script. Would like to hid the input of the phrase from the screen | while the user types it in. Whats the best way? Well, the easy way is this:

Re: Scripting password

2003-09-04 Thread Jason Riedel
: "Patrick Nelson" <[EMAIL PROTECTED]> To: "RedHat List" <[EMAIL PROTECTED]> Sent: Wednesday, September 03, 2003 11:39 PM Subject: Scripting password > Writing a script that asks for a pass-phrase to use specific features of > the script. Would like to hid

Scripting password

2003-09-03 Thread Patrick Nelson
Writing a script that asks for a pass-phrase to use specific features of the script. Would like to hid the input of the phrase from the screen while the user types it in. Whats the best way? -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinf

Re: scripting for file transfers from Linux to windows

2003-08-28 Thread Marcos de Souza Trazzini
On Wed, 2003-08-27 at 18:23, Peramslist wrote: > Hi, > I'm writing a script for transferring files by ftp from RH linix 9 to > Windows. > After I login to ftp box I need to cd to d:\target folder and from the > default dir. > I tried > ftp> cd d:/target > ftp> cd D:/target > > and > ftp> cd d:

scripting for file transfers from Linux to windows

2003-08-27 Thread Peramslist
Hi, I'm writing a script for transferring files by ftp from RH linix 9 to Windows. After I login to ftp box I need to cd to d:\target folder and from the default dir. I tried ftp> cd d:/target ftp> cd D:/target   and ftp> cd d:\target and ftp> cd "d:\target" and ftp> cd "D:\target" but

Re: scripting help with ftp

2003-08-27 Thread Ronald W. Heiby
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 C-Kermit (for Linux) and Kermit-95 (for your Windows box) have tremendous scripting capabilities. There is a modest cost for the Kermit-95 distribution, but I have found it to be well worth it. Check it out at <http://www.columbia.edu/kermit/>

Re: scripting help with ftp

2003-08-26 Thread rick henderson
On Tue, 2003-08-26 at 00:13, Peram's List wrote: > Hi Gurus, > I need help with a script to transfer files from a linux box running RH > 8.0 from a windows 2000 box.The sequence is as follows: > 1. Ftp into the windows server, check for the existance of map* files in > ftp dir, if yes move the fil

Re: scripting help with ftp

2003-08-26 Thread Gerry Doris
On Tue, 26 Aug 2003, Peram's List wrote: > Hi Gurus, > I need help with a script to transfer files from a linux box running RH > 8.0 from a windows 2000 box.The sequence is as follows: > 1. Ftp into the windows server, check for the existance of map* files in > ftp dir, if yes move the files to t

scripting help with ftp

2003-08-26 Thread Peram's List
Hi Gurus, I need help with a script to transfer files from a linux box running RH 8.0 from a windows 2000 box.The sequence is as follows: 1. Ftp into the windows server, check for the existance of map* files in ftp dir, if yes move the files to the files to Archives folder with a date stamp. 2. On

Re: Scripting help

2003-08-22 Thread Cameron Simpson
I wrote: | > start=`perl -e 'print time'` | > body of script here ... | > end=`perl -e 'print time'` | > echo "took `expr $end - $start` seconds" Whoops - left off the quote around "print time" in the second perl. On 18:18 21 Aug 2003, Bret Hughes <[EMAIL PROTECTED]> wrote: |

RE: Scripting help

2003-08-21 Thread Jason Dixon
On Thu, 2003-08-21 at 20:24, Cowles, Steve wrote: > Jason Dixon wrote: > > On Thu, 2003-08-21 at 17:38, Peram's List wrote: > >> I appreciate your quick response. > >> Is there any way I get the time taken for the execution of a script > >> from the script itself instead of typing it at the command

RE: Scripting help

2003-08-21 Thread Cowles, Steve
Jason Dixon wrote: > On Thu, 2003-08-21 at 17:38, Peram's List wrote: >> I appreciate your quick response. >> Is there any way I get the time taken for the execution of a script >> from the script itself instead of typing it at the command line. > > To be honest, I can't get GNU time to even honor

Re: Scripting help

2003-08-21 Thread Jason Dixon
On Thu, 2003-08-21 at 17:38, Peram's List wrote: > I appreciate your quick response. > Is there any way I get the time taken for the execution of a script from > the script itself instead of typing it at the command line. To be honest, I can't get GNU time to even honor its own flags. It's also n

Re: Scripting help

2003-08-21 Thread Bret Hughes
On Thu, 2003-08-21 at 17:46, Cameron Simpson wrote: > On 16:38 21 Aug 2003, Peram's List <[EMAIL PROTECTED]> wrote: > | I appreciate your quick response. > | Is there any way I get the time taken for the execution of a script from > | the script itself instead of typing it at the command line. > >

Re: Scripting help

2003-08-21 Thread Cameron Simpson
On 16:38 21 Aug 2003, Peram's List <[EMAIL PROTECTED]> wrote: | I appreciate your quick response. | Is there any way I get the time taken for the execution of a script from | the script itself instead of typing it at the command line. Well, if you're still inside the script then the won't be "the

Re: Scripting help

2003-08-21 Thread Peram's List
IL PROTECTED]> Sent: Thursday, August 21, 2003 3:41 PM Subject: Re: Scripting help > On Thu, 2003-08-21 at 16:40, Peram's List wrote: > > Hi, > > I know this is a basic question but I tried on the web and could not > > find an answer. > > I'd appreciate if

Re: Scripting help

2003-08-21 Thread Jason Dixon
On Thu, 2003-08-21 at 16:40, Peram's List wrote: > Hi, > I know this is a basic question but I tried on the web and could not > find an answer. > I'd appreciate if you can guide me on how I can find the time taken for > a script to complete on Redhat 8.0. time Example: $ time sleep 3 real0

Scripting help

2003-08-21 Thread Peram's List
Hi, I know this is a basic question but I tried on the web and could not find an answer. I'd appreciate if you can guide me on how I can find the time taken for a script to complete on Redhat 8.0. Regards, Peram -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redh

Re: PHP Scripting - Hope you get all this

2003-07-10 Thread Gordon Messmer
Brian Ashe wrote: Im getting an error when running a script : bad interpreter: No such file or directory If you ever see that in the shell, it means that the script you're running has DOS linefeeds in it. Use either "dos2unix" or "tr -d '\n' < oldfile > newfile" to remove them. Try it with a "t

RE: PHP Scripting - Hope you get all this

2003-07-10 Thread Chris W. Parker
Leonard den Ottolander wrote: > How clean is a war when you shoot around nukelar waste? > Stop the use of depleted uranium ammo! > End all weapons of mass destruction. Not sure if you're doing this on purpose but I just couldn't let it go, ;) nukelar is spelled nuclear

Re: PHP Scripting - Hope you get all this

2003-07-10 Thread Leonard den Ottolander
Hi Logan, > Ive seen your "prompts" for want of a better word, with a $ > Mine have a # (this is bash ...no?) Will the $ let me run things...?? Prompt is the right word. # is the root prompt. $ is the prompt for normal users. Please log in as a normal user if you are not doing a task that needs

Re: PHP Scripting - Hope you get all this

2003-07-10 Thread Bill Tangren
Logan Linux wrote: Really sorry to bug again, Im sure you all remember the first week... Just to clarify, Im over the php scripting problem but I still need to preface all scripts with a sh to run them. Ive seen your "prompts" for want of a better word, with a $ Mine have a # (th

Re: PHP Scripting - Hope you get all this

2003-07-10 Thread Bill Anderson
On Wed, 2003-07-09 at 17:42, Logan Linux wrote: > Sorry, > > None of these worked. Still get the same error. Do the \n's show up in VI? No, but in current versions of Vim, you'd see at the bottom of the window: [dos]. (there is a way to make Vi/Vim show them, but I don't recall at the time.) --

Re: PHP Scripting - Hope you get all this

2003-07-09 Thread Logan Linux
Really sorry to bug again, Im sure you all remember the first week... Just to clarify, Im over the php scripting problem but I still need to preface all scripts with a sh to run them. Ive seen your "prompts" for want of a better word, with a $ Mine have a # (this is bash ...no?) Will

Re: PHP Scripting - Hope you get all this

2003-07-09 Thread Brian Ashe
Logan Linux, On Wednesday July 09, 2003 07:42, Logan Linux wrote: > Sorry, > > None of these worked. Still get the same error. Do the \n's show up in VI? > > >> Im getting an error when running a script > > >> > > >> : bad interpreter: No such file or directory > > > > > > If you ever see that in

Re: PHP Scripting - Hope you get all this

2003-07-09 Thread Logan Linux
OTECTED] To: "Red Hat Users List " <[EMAIL PROTECTED]> Subject: Re: PHP Scripting - Hope you get all this Date: Wed, 9 Jul 2003 15:56:57 +1000 (EST) >> Im getting an error when running a script >> : bad interpreter: No such file or directory > > If you ever

Re: PHP Scripting - Hope you get all this

2003-07-08 Thread Peter Kiem
>> Im getting an error when running a script >> : bad interpreter: No such file or directory > > If you ever see that in the shell, it means that the script you're > running has DOS linefeeds in it. Use either "dos2unix" or > "tr -d '\n' < oldfile > newfile" to remove them. or change it using vi

Re: PHP Scripting - Hope you get all this

2003-07-08 Thread Gordon Messmer
Logan Linux wrote: Im getting an error when running a script : bad interpreter: No such file or directory If you ever see that in the shell, it means that the script you're running has DOS linefeeds in it. Use either "dos2unix" or "tr -d '\n' < oldfile > newfile" to remove them. -- redhat-list

PHP Scripting - Hope you get all this

2003-07-08 Thread Logan Linux
Im getting an error when running a script : bad interpreter: No such file or directory That's when I use the command im supposed to. I tried using sh and the script... [EMAIL PROTECTED] nessus-php]# sh nsr : command not found : command not found 'sr: line 30: syntax error near unexpected token `do

Re: BASH Shell Scripting Question

2003-06-27 Thread Richard Crawford
Thanks to everyone who replied to this question. I wound up doing it in Perl. ;-) Sliante, Richard S. Crawford http://www.mossroot.com AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford MSN: [EMAIL PROTECTED] "It is only with the heart that we see rightly; what is essential is invisible to the eye."

Re: BASH Shell Scripting Question

2003-06-27 Thread pnelson
On Fri, 2003-06-27 at 09:43, Richard Crawford wrote: > Greetings, > > I have a shell script which duplicates a file and then renames the > duplicate file; the trick is that the duplicate file needs to have the > same permissions as the original file. For example: > > 1. Open file A.txt > 2.

Re: BASH Shell Scripting Question

2003-06-27 Thread Gordon Messmer
Richard Crawford wrote: ... 5. Give B.txt the same permissions as A.txt I assume that there is some set of variables I can look at to find various attributes of A.txt, so that $APerm = permissions(A.txt) or something, so I can do chmod $APerm B.txt in step 5. From the "setfacl" man page:

Re: BASH Shell Scripting Question

2003-06-27 Thread Bret Hughes
On Fri, 2003-06-27 at 11:43, Richard Crawford wrote: > Greetings, > > I have a shell script which duplicates a file and then renames the > duplicate file; the trick is that the duplicate file needs to have the > same permissions as the original file. For example: > > 1. Open file A.txt > 2.

BASH Shell Scripting Question

2003-06-27 Thread Richard Crawford
Greetings, I have a shell script which duplicates a file and then renames the duplicate file; the trick is that the duplicate file needs to have the same permissions as the original file. For example: 1. Open file A.txt 2. Manipulate A.txt 3. Save A.txt as A.txt.tmp 4. Rename A.txt.tmp t

Shell scripting issue resolved!!

2003-06-24 Thread Richard Crawford
Once I got out of the mindset of having to use a bash shell script for the task (thanks to a couple of people of this list for the suggestion), I came up with this script that does the trick (specific IP address and directory structure stuff changed to protect the innocent): #!/usr/local/bin/perl

Re: Shell Scripting Question

2003-06-24 Thread Cameron Simpson
On 08:21 24 Jun 2003, Jon Haugsand <[EMAIL PROTECTED]> wrote: | * Cameron Simpson | > | > I tend to do this: | > find dir -type f -name '*.html' -exec bsed 's|this|long/thing/with/slashes/this|g' {} ';' | > or just: | > bsed 's|this|long/thing/with/slashes/this|g' *.html | > for just the .

Re: bsed (was: Re: Shell Scripting Question)

2003-06-24 Thread Cameron Simpson
On 08:22 24 Jun 2003, Jon Haugsand <[EMAIL PROTECTED]> wrote: | * Cameron Simpson | > You can get bsed here: | > | > http://www.cskk.ezoshosting.com/cs/scripts/bsed | > | > An extremely useful wrapper for sed. | | Not much information here, is it? Can you give a short tutorial? You treat it

bsed (was: Re: Shell Scripting Question)

2003-06-23 Thread Jon Haugsand
* Cameron Simpson > You can get bsed here: > > http://www.cskk.ezoshosting.com/cs/scripts/bsed > > An extremely useful wrapper for sed. Not much information here, is it? Can you give a short tutorial? -- Jon Haugsand, [EMAIL PROTECTED] http://www.norges-bank.no -- redhat-list mailing

Re: Shell Scripting Question

2003-06-23 Thread Jon Haugsand
* Cameron Simpson > > I tend to do this: > find dir -type f -name '*.html' -exec bsed > 's|this|long/thing/with/slashes/this|g' {} ';' > or just: > bsed 's|this|long/thing/with/slashes/this|g' *.html > for just the .html files in the current directory. As far as I understood the quest

Re: Shell Scripting Question

2003-06-23 Thread Cameron Simpson
On 16:18 23 Jun 2003, Richard Crawford <[EMAIL PROTECTED]> wrote: | Jonathan Bartlett said: | > I'm very curious why you want this. Anyway, basically, go to the top | > level and run this perl script( NOTE - I haven't even tested this to see | > if it will compile, so it will likely delete all you

Re: Shell Scripting Question

2003-06-23 Thread Richard Crawford
Jonathan Bartlett said: > I'm very curious why you want this. Anyway, basically, go to the top > level and run this perl script( NOTE - I haven't even tested this to see > if it will compile, so it will likely delete all your files and set your > computer on fire. But it should give you a starti

Re: Shell Scripting Question

2003-06-23 Thread Richard Crawford
Jonathan Bartlett said: > I'm very curious why you want this. Anyway, basically, go to the top > level and run this perl script( NOTE - I haven't even tested this to see > if it will compile, so it will likely delete all your files and set your > computer on fire. But it should give you a starti

Re: Shell Scripting Question

2003-06-23 Thread Jonathan Bartlett
I'm very curious why you want this. Anyway, basically, go to the top level and run this perl script( NOTE - I haven't even tested this to see if it will compile, so it will likely delete all your files and set your computer on fire. But it should give you a starting point): #!/usr/bin/perl sub

RE: Shell Scripting Question

2003-06-23 Thread Brian Lucas
Title: RE: Shell Scripting Question Make a script using the below.  Then change to your highest folder and then run: # sh name_of_script.sh *.htm -- #!/bin/ksh tmpdir=tmp.$$ mkdir $tmpdir.new for f in $* do     sed -e 's/action="" href="http://www.the

Shell Scripting Question

2003-06-23 Thread Richard Crawford
I have an urgent need inside a shell script to replace a filename within an html file with the absolute url to the file. For example, http://www.thesite.com/theform.html calls a CGI script. The FORM tag looks like this: < form name="thisForm" method="post" action="myScript.pl" > What I need to

Re: BASH scripting for a mouse

2003-06-14 Thread Cameron Simpson
On 10:55 13 Jun 2003, David Kramer <[EMAIL PROTECTED]> wrote: | On Friday 13 June 2003 04:40 am, Matthew Richards wrote: [...] | > but I do not know how to determine if the string "serial" exists in the | variable SMOUSE in terms of the 'if' statement. | | The answer is you don't. | | If you

Re: BASH scripting for a mouse

2003-06-13 Thread David Kramer
On Friday 13 June 2003 04:40 am, Matthew Richards wrote: > Hello, > > I am writing a script to determine if a serial mouse is connected to the local system. So far I have: > > #!/bin/bash > SMOUSE=$(/bin/grep -i "serial" /etc/sysconfig/mouse) > if [ $SMOUSE = "" ]; then >echo "There is not a

Re: BASH scripting for a mouse

2003-06-13 Thread Jon Haugsand
* Matthew Richards > Hello, > > I am writing a script to determine if a serial mouse is connected to the local > system. So far I have: > > #!/bin/bash > SMOUSE=$(/bin/grep -i "serial" /etc/sysconfig/mouse) > if [ $SMOUSE = "" ]; then >echo "There is not a serial mouse attached to this system.

BASH scripting for a mouse

2003-06-13 Thread Matthew Richards
Hello, I am writing a script to determine if a serial mouse is connected to the local system. So far I have: #!/bin/bash SMOUSE=$(/bin/grep -i "serial" /etc/sysconfig/mouse) if [ $SMOUSE = "" ]; then echo "There is not a serial mouse attached to this system." else echo "A serial mouse is a

Re: Scripting help

2003-03-29 Thread Edward Dekkers
> The Linux Documentation Project has pretty good stuff: > > Advanced Bash-Scripting Guide > http://www.tldp.org/LDP/abs/html/ > > Tony Thanks Tony. Regards, --- Edward Dekkers (Director) Triple D Computer Services P/L -- redhat-list mailing list unsubscribe mailt

Re: Scripting help

2003-03-29 Thread Edward Dekkers
> And there are loads of online tutorials on shell scripting. Google turned up > one such > tutorial for me: > > http://www.freeos.com/guides/lsst/ > > There must be others too. > > -- > Anand Thanks Anand - the stuff you just told me should in fact get me by. Wh

Re: Scripting help

2003-03-29 Thread Anthony E. Greene
s? The Linux Documentation Project has pretty good stuff: Advanced Bash-Scripting Guide http://www.tldp.org/LDP/abs/html/ Tony -- Anthony E. Greene <mailto:[EMAIL PROTECTED]> OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D AOL/Yahoo Messenger: TonyG05Hom

Re: Scripting help

2003-03-29 Thread Anand Buddhdev
d' "man date" for more information. And there are loads of online tutorials on shell scripting. Google turned up one such tutorial for me: http://www.freeos.com/guides/lsst/ There must be others too. -- Anand -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list

Scripting help

2003-03-29 Thread Edward Dekkers
The scenario: Customer used to run p-2-p Windows network. 1 of the PCs held all company files. These file were then backed up using MSBackup to ANOTHER Windows PC. There they were then put onto tape, as a second point of safekeeping. The network has been getting slow, so they allowed me to set up

Re: scripting an ssh session

2003-02-21 Thread Ivan Roseland
Dave Vehrs wrote: Use the Expect scripting langauge. It was designed for scripting interactive processes. Learn more at: http://expect.nist.gov/ Dave V. you could do it with NET::SSH::PERL ( Perl Modules) here is that part that matters. my $ssh = Net::SSH::Perl->new($host, opti

Re: scripting an ssh session

2003-02-21 Thread Dave Vehrs
Use the Expect scripting langauge. It was designed for scripting interactive processes. Learn more at: http://expect.nist.gov/ Dave V. On Tue, 2003-02-11 at 17:28, David Simmons wrote: > We have a couple of servers that we want to push out periodic updates > to. We want to automate t

Re: scripting an ssh session

2003-02-15 Thread Rodolfo J. Paiz
On Tue, 2003-02-11 at 18:28, David Simmons wrote: > We have a couple of servers that we want to push out periodic updates > to. We want to automate this as much as possible. > > We have password-less ssh working (thanks to the group for that!). So > using a shell script we can login in to a re

Re: Scripting help

2003-02-13 Thread Darryl Harvey
And the one I like and use is; http://www.amazon.com/exec/obidos/ASIN/0130147117/qid=1045182968/sr=2-1/ref=sr_2_1/103-8867147-8196623 It's a winner Darryl At 04:17 PM 13/02/2003 -0800, you wrote: hi arden, gordon, et al, i tried out several shell books (including o'reilly), but the one i

Re: Scripting help

2003-02-13 Thread Jeff Stern
hi arden, gordon, et al, i tried out several shell books (including o'reilly), but the one i kept and keep using is below. chock full of examples (for bash) and task-oriented -- i.e., "how to do x" (and an example).. "how to do y" (and another example) etc etc. in fact, i have to keep stealing

Re: Scripting help

2003-02-13 Thread Jeff Bearer
with a book title for Unix/Linux Scripting?? > > The O'Reilly bash book is probably the best book for learning Linux shell > scripting. While you can certainly use other shells or scripting > languages, bash is the default shell on nearly all distros, so it's > definitely t

Re: Scripting help

2003-02-13 Thread Jan
Jon Haugsand wrote: You can, in our situation do something like: while read a b c d; do case "$a" in root) export R="ok" ;; daemon) export D="ok" ;; esac done < /etc/passwd And your "side effects" remain. (But I buy th

Re: Scripting help

2003-02-13 Thread Jon Haugsand
ted! Thanks. You can, in our situation do something like: while read a b c d; do case "$a" in root) export R="ok" ;; daemon) export D="ok" ;; esac done < /etc/passwd And your "side effects" remain. (But I buy the point of

Re: Scripting help

2003-02-13 Thread Jan
h on Linux other than seeing that it is there. However, I have recently done extensive (and portable) shell scripting in ksh on AIX (4 and 5), SunOS (5.6, 5.7, and 5.8) and HP-UX (11 and 11i) as well as Tru64 (AKA OSF1) and Linux. The script above works on all platforms except Linux. The ksh, BT

Re: Scripting help

2003-02-13 Thread Jon Haugsand
* [EMAIL PROTECTED] > > IFS=':' > cat /etc/passwd | while read a b c d > do > if [[ "$a" == "root" ]] > then >export NAME="$c" > fi > done > > - in ksh this will export NAME into your current env, but not in > bash. The explanation, I understand, is that when you start a pipel

Re: Scripting help

2003-02-13 Thread Jan
James Francis wrote: Arden Norder wrote: Hey folks!! Can anyone help me with a book title for Unix/Linux Scripting?? I used to (back in the DOS days) do alot of batch scripting using variables etc, etc, etc. I would like to try to automate some processes on my RH7.2 Server via unix batch

Re: Scripting help

2003-02-12 Thread Gordon Ewasiuk
On Wed, 12 Feb 2003, Arden Norder wrote: > Hey folks!! > Can anyone help me with a book title for Unix/Linux Scripting?? > > I used to (back in the DOS days) do alot of batch scripting using variables etc, >etc, etc. > > I would like to try to automate some processes o

RE: scripting an ssh session

2003-02-12 Thread David Simmons
:09 PM To: [EMAIL PROTECTED] Subject: Re: scripting an ssh session On Tue, 2003-02-11 at 17:28, David Simmons wrote: > We have a couple of servers that we want to push out periodic updates > to. We want to automate this as much as possible. > > We have password-less ssh working (t

Re: scripting an ssh session

2003-02-12 Thread Bill Anderson
On Tue, 2003-02-11 at 17:28, David Simmons wrote: > We have a couple of servers that we want to push out periodic updates > to. We want to automate this as much as possible. > > We have password-less ssh working (thanks to the group for that!). So > using a shell script we can login in to a re

Re: Scripting help

2003-02-12 Thread Andrew Robinson
With a little web-searching, you should be able to find a ton of tutorials on shell scripting. If you liked DOS scripting, you'll be amazed at what you can do with one of the *nix shells. At 01:56 PM 2/12/2003 -0800, you wrote: O'Reilly makes a good book about Bash, see their

Re: Scripting help

2003-02-12 Thread Anthony E. Greene
Arden Norder wrote: Can anyone help me with a book title for Unix/Linux Scripting?? I used to (back in the DOS days) do alot of batch scripting using variables etc, etc, etc. I would like to try to automate some processes on my RH7.2 Server via unix batch scripting. Also see the Advanced Bash

Re: Scripting help

2003-02-12 Thread Todd A. Jacobs
On Wed, 12 Feb 2003, Arden Norder wrote: > Can anyone help me with a book title for Unix/Linux Scripting?? The O'Reilly bash book is probably the best book for learning Linux shell scripting. While you can certainly use other shells or scripting languages, bash is the default shell on ne

Re: Scripting help

2003-02-12 Thread David Busby
O'Reilly makes a good book about Bash, see their site. /B - Original Message - From: "Arden Norder" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 12, 2003 13:51 Subject: Scripting help > Hey folks!! > Can anyone help me with a bo

RE: Scripting help

2003-02-12 Thread James Francis
Arden Norder wrote: > Hey folks!! > Can anyone help me with a book title for Unix/Linux Scripting?? > > I used to (back in the DOS days) do alot of batch scripting > using variables etc, etc, etc. > > I would like to try to automate some processes on my RH7.2 > Server

Re: Scripting help

2003-02-12 Thread jkinz
On Wed, Feb 12, 2003 at 10:51:03PM +0100, Arden Norder wrote: > Hey folks!! > Can anyone help me with a book title for Unix/Linux Scripting?? > > I used to (back in the DOS days) do alot of batch scripting using variables etc, >etc, etc. > > I would like to try to automate

Scripting help

2003-02-12 Thread Arden Norder
Hey folks!! Can anyone help me with a book title for Unix/Linux Scripting?? I used to (back in the DOS days) do alot of batch scripting using variables etc, etc, etc. I would like to try to automate some processes on my RH7.2 Server via unix batch scripting. Any help would be greatly

Re: scripting an ssh session

2003-02-12 Thread Kevin
ROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 11, 2003 16:28 Subject: scripting an ssh session We have a couple of servers that we want to push out periodic updates to. We want to automate this as much as possible. We have password-less ssh working (thanks to t

Re: scripting an ssh session

2003-02-12 Thread David Busby
Try using rsync, it might do what you need, will work over SSH or RSH. /B - Original Message - From: "David Simmons" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 11, 2003 16:28 Subject: scripting an ssh session > We have a couple of ser

Re: scripting an ssh session

2003-02-11 Thread Todd A. Jacobs
On Tue, 11 Feb 2003, David Simmons wrote: > Is it possible to continue feeding commands from the ssh shell script I > wrote to the remote machine? For example, if my script is something > like: Interactive processes can be scripted using expect. But why not just place your remote commands in a

Re: scripting an ssh session

2003-02-11 Thread Dave Young
or, you could just: ssh [EMAIL PROTECTED] cd /usr/local; echo "some new command" >> therefile ;-) On Tuesday 11 February 2003 04:53 pm, Raymundo M. Vega wrote: > yes, i think you should do it like: -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https:

Re: scripting an ssh session

2003-02-11 Thread Raymundo M. Vega
yes, i think you should do it like: ssh [EMAIL PROTECTED] << EOF cd /usr/local echo "some new command" >> therefile logout exit 1 EOF hope it helps raymundo David Simmons wrote: We have a couple of servers that we want to push out periodic updates to. We want to automate this as much as possi

scripting an ssh session

2003-02-11 Thread David Simmons
We have a couple of servers that we want to push out periodic updates to. We want to automate this as much as possible. We have password-less ssh working (thanks to the group for that!). So using a shell script we can login in to a remote machine. But that is all we can do. Once we login we

Some scripting help please

2003-02-06 Thread Gordon McDowall
Hi Slightly off topic I need some help with a scripting problem I have, here is the scenario I have a template file that has 4 values to be search and replaced, that s not difficult, but I have another file with a list of the 4 values to be replaced multiple times i.e. the script should search

Re: Good Script Repository Somewhere? Help with Shell Scripting.

2003-02-04 Thread Mertens Bram
> >I'm just learning how to write shell scripts, and I'd like to find example > >scripts to look at. The BASH howto and Advanced BASH howto isn't too great > >in this respect. Take a look at http://www.linuxcommand.org/. William Shotts, Jr. has put together a very nice tutorial and the site al

Re: Good Script Repository Somewhere? Help with Shell Scripting.

2003-02-04 Thread Mertens Bram
> >I'm just learning how to write shell scripts, and I'd like to find example > >scripts to look at. The BASH howto and Advanced BASH howto isn't too great > >in this respect. Take a look at http://www.linuxcommand.org/. William Shotts, Jr. has put together a very nice tutorial and the site al

RE: Good Script Repository Somewhere? Help with Shell Scripting.

2003-02-03 Thread Hugh E Cruickshank
Hi Ryan: Here are those promised links: Bash specific: http://unix.about.com/cs/shellsbash/ http://users.info.unicaen.fr/~jacques/NAPI/unite-A1/Adv-Bash-Scr-HOWTO/ http://www.gnu.org/manual/bash-2.05a/html_node/bashref.html http://bashdb.sourceforge.net/ http://www.geocities.com/tipsforlinux/art

Re: Good Script Repository Somewhere? Help with Shell Scripting.

2003-02-03 Thread Anthony E. Greene
On 02-Feb-2003/00:51 +, RD Egeland <[EMAIL PROTECTED]> wrote: >I'm just learning how to write shell scripts, and I'd like to find example >scripts to look at. The BASH howto and Advanced BASH howto isn't too great >in this respect. > >The immediate task I'm trying to do is extract a date int

Re: Good Script Repository Somewhere? Help with Shell Scripting.

2003-02-02 Thread Caleb Groom
On Sat, 2003-02-01 at 18:51, RD Egeland wrote: > I'm just learning how to write shell scripts, and I'd like to find example > scripts to look at. The BASH howto and Advanced BASH howto isn't too great > in this respect. > > The immediate task I'm trying to do is extract a date into a standardiz

Re: Good Script Repository Somewhere? Help with Shell Scripting.

2003-02-01 Thread Raymundo Vega
small corrections, the "<" symbol is not needed, awk can read directly from a file too. if you want to sort it, it is easier if month is converted to its numeric equivalent1 to 12 and print a string like: mmddhhmmss the following script does that on a test string. hope it helps raymundo

RE: Good Script Repository Somewhere? Help with Shell Scripting.

2003-02-01 Thread Hugh E Cruickshank
Hi Ryan: I believe I have some link at the office. I will try and remember to forward them to you on Monday. In the interim, take a look at the awk command. This will allow you to reformat the input lines (as well as many other things). For a start the command: awk '{print $10 " " $7 " " $8

Good Script Repository Somewhere? Help with Shell Scripting.

2003-02-01 Thread RD Egeland
I'm just learning how to write shell scripts, and I'd like to find example scripts to look at. The BASH howto and Advanced BASH howto isn't too great in this respect. The immediate task I'm trying to do is extract a date into a standardized format which I can then somehow sort. The text I nee

RE: scripting newbie has question...

2003-01-01 Thread Eric Ladner
ECTED] [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 30, 2002 4:54 PM > To: Stone, Timothy > Subject: Re: scripting newbie has question... > > > Tim, > > Will this help? > > Regards, Mike Klinke > > > --- > #!/bin/sh > # >

RE: scripting newbie has question...

2002-12-31 Thread Stone, Timothy
Mike and all, Worked like a charm! Thanks! Wishing you a happy new year! Tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, December 30, 2002 4:54 PM To: Stone, Timothy Subject: Re: scripting newbie has question... Tim, Will this help? Regards

Re: scripting newbie has question...

2002-12-30 Thread David Busby
those backticks make the shell see date as a command to run) Google for bash tutorial or bash script howto /B - Original Message - From: "Stone, Timothy" <[EMAIL PROTECTED]> To: "Redhat-List (E-mail)" <[EMAIL PROTECTED]> Sent: Monday, December 30, 2002 12:5

  1   2   3   >