* batch file?
@ Butch Bussen
` Janina Sajka
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Butch Bussen @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
I know they;'re not called batch files in Linux, but how can I write a
simple file to do a command I usually type in at the command prompt. I
tried putting the line in a file and I think I set permissions right, but
it doesn't do anything. For example I have the command
/home/irlp/scripts/backup_for_reinstall
I'm wanting to put this in a simple file that does this command as a bat
file would in dos.
Thanks.
73s
Butch Bussen
wa0vjr
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: batch file?
batch file? Butch Bussen
@ ` Janina Sajka
` John McCann
` Ann Parsons
2 siblings, 0 replies; 5+ messages in thread
From: Janina Sajka @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
They're called scripts in this environment, not batch files.
You need to get some of the standard references for the shell to learn
how to script for it. Please note I've been very careful not to name a
shell--because it happens there are several. Most likely, though, you're
using the bash shell. So look at http://www.tldp.org for HOWTO documents
about programming the bash shell.
Butch Bussen writes:
> I know they;'re not called batch files in Linux, but how can I write a
> simple file to do a command I usually type in at the command prompt. I
> tried putting the line in a file and I think I set permissions right, but
> it doesn't do anything. For example I have the command
> /home/irlp/scripts/backup_for_reinstall
>
> I'm wanting to put this in a simple file that does this command as a bat
> file would in dos.
> Thanks.
> 73s
> Butch Bussen
> wa0vjr
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
--
Janina Sajka, Chair
Accessibility Workgroup
Free Standards Group (FSG)
janina@freestandards.org Phone: +1 202.494.7040
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: batch file?
batch file? Butch Bussen
` Janina Sajka
@ ` John McCann
` Ann Parsons
2 siblings, 0 replies; 5+ messages in thread
From: John McCann @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
Hi Butch:
Well, I can't believe I'm going to do this as I am an *extremely embrionic
linux user (three weeks or so), but here goes.
What you have to do is put an alias into your .bashrc file. Your .bashrc
(note the period) file is in your home directory:
/home/butch (if you used Butch as your user name)
You put this line in the file, where "x" represents the character string you
want to use to execute the command:
alias x='/home/irlp/scripts/backup_for_reinstall'
The apostrophes were indicated in the linux "on line" tutorial I consulted,
so I'm sure what appears after the = must be in either single or double
quotes.
Hope this helps!
Best 73's!
John
KW4U
----- Original Message -----
From: "Butch Bussen" <butchb@shellworld.net>
To: "Speakup is a screen review system for Linux." <speakup@braille.uwo.ca>
Sent: Monday, October 11, 2004 3:09 PM
Subject: batch file?
>I know they;'re not called batch files in Linux, but how can I write a
>simple file to do a command I usually type in at the command prompt. I
>tried putting the line in a file and I think I set permissions right, but
>it doesn't do anything. For example I have the command
> /home/irlp/scripts/backup_for_reinstall
>
> I'm wanting to put this in a simple file that does this command as a bat
> file would in dos.
> Thanks.
> 73s
> Butch Bussen
> wa0vjr
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* batch file?
batch file? Butch Bussen
` Janina Sajka
` John McCann
@ ` Ann Parsons
` Gregory Nowak
2 siblings, 1 reply; 5+ messages in thread
From: Ann Parsons @ UTC (permalink / raw)
To: Speakup is a screen review system for Linux.
Hi all,
You want a shell script. The syntax will depend on what shell you're
using. Check docs on your brand of shell.
A shell script might look something like this.
#!/bin/sh
lame -b 128 $1.wav $1.mp3
Ann P.
--
Ann K. Parsons
email: akp@eznet.net
WEB SITE: http://home.eznet.net/~akp
"All that is gold does not glitter.
Not all those who wander are lost." JRRT
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: batch file?
` Ann Parsons
@ ` Gregory Nowak
0 siblings, 0 replies; 5+ messages in thread
From: Gregory Nowak @ UTC (permalink / raw)
To: akp, Speakup is a screen review system for Linux.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Since Ann didn't explain what this small shell script example does,
let me point out that it converts a wav file into an mp3 file using
the lame program.
Greg
On Mon, Oct 11, 2004 at 05:02:05PM -0400, Ann Parsons wrote:
> Hi all,
>
> You want a shell script. The syntax will depend on what shell you're
> using. Check docs on your brand of shell.
>
> A shell script might look something like this.
>
> #!/bin/sh
> lame -b 128 $1.wav $1.mp3
>
>
> Ann P.
>
> --
> Ann K. Parsons
> email: akp@eznet.net
> WEB SITE: http://home.eznet.net/~akp
> "All that is gold does not glitter.
> Not all those who wander are lost." JRRT
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
>
> !DSPAM:416af55424671294411524!
>
>
- --
Free domains: http://www.eu.org/ or mail dns-manager@EU.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQFBavb+7s9z/XlyUyARAgNIAKDMNQ4bIOlk3VZjs5HXF/kFGOgiRgCg11is
xRtGpV6uWPtB1cS9G3RfcII=
=8RqA
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
batch file? Butch Bussen
` Janina Sajka
` John McCann
` Ann Parsons
` Gregory Nowak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).