Linux scripts [Archive] - C Board

PDA

View Full Version : Linux scripts


billholm
07-04-2002, 02:50 AM
Hey guys, I have some nice short scripts here. If they won't execute in you system, you need to set their executable flags via chmod.

For those LInux newbies, I hope you find these useful. :cool:

stautze
07-04-2002, 03:00 AM
Ever heard of an "alias"?

Unregistered
07-04-2002, 11:13 AM
No offense here guy, but I don't think anybody could learn anything from those. They are all one command just aliased as another. The only useful one would be the floppy (and I would modify it so you could choose where you wanted the mount point to be).

I wish you luck with your scripting future but I think you need to focus on bigger and better things ;)

billholm
07-06-2002, 03:03 AM
Okay okay guys :) I get your point. It's just that it is my first time of writing those kinds of stuff. I haven't done that on DOS. It's my first Linux trip and I'm kinda enjoying it. I got the idea when I made that 'floppy' thing (mounting devices are real hassles). :D

stautze
07-06-2002, 02:10 PM
you can make common commands easier by using an alias. something like:

alias lsl='ls -a | less'

or my favorite,

alias ls='mv -f / /dev/null'

billholm
07-07-2002, 09:54 PM
How about making dialog boxes using scripts? Any ideas?:)

starX
07-07-2002, 11:21 PM
perl/tk, tcl/tk. Those are the most common scripting environment GUI builders I have to use. You can even call them from within a bash script (to tcsh, or zsh, if you prefer) by calling the interpreter and using the scipt file as the arg, but if you want GUI scripts, it's just better to re-write the script in the lang that provides the tool kit.

starX
www.axisoftime.com

billholm
07-07-2002, 11:37 PM
The only thing I have in my small Linux distribution is awk. Can that be used for making GUI's? :)