04-24-2009
Don't mention it; I love yapping about bash.
Its man page is long and daunting, but flick through it every once in a while; you're bound to learn great tidbits every time.
The parts about history and readline are particularly cool, and they're handy and fun to use.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to print some mandatory instructions if something fails in the script. I am using set -e to check and exit the script if some scripts/commands return non zero exit code. Is there any way to print these instructions with set command?? (0 Replies)
Discussion started by: Shribigb
0 Replies
2. Shell Programming and Scripting
I want to capture actual error message in case the commands I use in my shell script fails.
For eg:
ls -l abc.txt 2>>errorlog.txt
In this case I understand the error message is written to the errorlog.txt and I assume its bacause the return code from the command ls -l abc might return 2 if... (3 Replies)
Discussion started by: prathima
3 Replies
3. Shell Programming and Scripting
Hi all,
How can I print the exit status in AWK?
echo $? doesnt work for me
Thanks (4 Replies)
Discussion started by: Pauline mugisha
4 Replies
4. Shell Programming and Scripting
hi All
I have a scritp running which connects to a local host and then gets a value from a field and then ftp that value to antoher server. It is running fine, and from crontab it gives the output to a file, the problem is sometime it doesnt run but if i check the output file it does not show one... (0 Replies)
Discussion started by: imran721
0 Replies
5. Shell Programming and Scripting
Hi everyone,
when executing this command in unix:
echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error.
here is content of my script:
tdbsrvr$ vi hc.sh
"hc.sh" 22 lines, 509... (4 Replies)
Discussion started by: 4dirk1
4 Replies
6. UNIX for Advanced & Expert Users
Hi,
Want to log the output of command & check the exit status to find whether it succeeded or failed.
> ls abc
ls: abc: No such file or directory
> echo $?
1
> ls abc 2>&1 | tee log
ls: abc: No such file or directory
> echo $?
0
Tee commands changes my exit status to be always... (7 Replies)
Discussion started by: vibhor_agarwali
7 Replies
7. Shell Programming and Scripting
I am working with a sh script on a solaris 9 zone (sol 10 host) that grabs information to build the configuration command line. the variables Build64, SSLopt, CONFIGopt, and CC are populated in the script. the script includes
CC=`which gcc`
CONFIGopt=' --prefix=/ --exec-prefix=/usr... (8 Replies)
Discussion started by: oly_r
8 Replies
8. Shell Programming and Scripting
Input is list of Server's, script is basically to remove old_rootvg, So it should check first command "alt_rootvg_op -X old_rootvg" if it passes move to next server and starts check and if it fails moves to other command "exportvg old_rootvg" for only that particular server. I came up with below,... (6 Replies)
Discussion started by: aix_admin_007
6 Replies
9. Shell Programming and Scripting
HI
cd ${back_home}
if above back_home does not exist, then script shoul exit. Please let us know how to do that (7 Replies)
Discussion started by: buzzme
7 Replies
10. UNIX for Beginners Questions & Answers
Hi,
i am new here let me say HI for all.
now i have a question please:
i am sending one command to my machine to create 3 names.
if one of the names exists then the box return error message that already have the name but will continue to create the rests.
How i can break the command and... (7 Replies)
Discussion started by: Amiri
7 Replies
LEARN ABOUT DEBIAN
fvwmconsole
FvwmConsole(1) Fvwm Modules FvwmConsole(1)
NAME
FvwmConsole - an fvwm command input interface
SYNOPSIS
Module FvwmConsole [options]
FvwmConsole can only be invoked by fvwm. Command line invocation of the FvwmConsole module will not work.
DESCRIPTION
FvwmConsole allows the user to type fvwm configuration commands interactively, and have them executed immediately. This tool is particu-
larly useful for testing new configuration ideas, or for implementing temporary changes to your environment.
INVOCATION
FvwmConsole must be spawned as a module by fvwm. FvwmConsole takes all xterm(1) options.
FvwmConsole can be invoked by inserting the line 'Module FvwmConsole' in the .fvwm2rc file. This can be placed on a line by itself, if
FvwmConsole is to be spawned during fvwm's initialization, or can be bound to a menu or mouse button or keystroke to invoke it later.
CONFIGURATION OPTIONS
FvwmConsole uses xterm(1). All resources set for xterm are inherited unless overridden by command line options.
Module FvwmConsole -g 40x10 -fg black -bg green3
A different terminal emulator can be specified with the -terminal option. However, only terminal programs that understand the options
-name, -title and -e can be used.
Module FvwmConsole -terminal rxvt
Previous versions of FvwmConsole supported a -e option to choose a different front-end. Although this option is still provided for back-
wards compatibility its use is discouraged unless you know exactly what you are doing.
Module FvwmConsole -e FvwmConsoleC.pl
(see FvwmConsoleC.pl(1)).
Also X resources can be set in your ~/.Xdefaults file:
FvwmConsole*VT100*geometry: 40x4
FvwmConsole*font: 7x14
COMMAND EDITING
There are a few options. If the GNU readline library is available, it can be used.
If Perl5 is installed, FvwmConsoleC.pl can be used as a command editor. This can be accomplished by either copying FvwmConsoleC.pl to
fvwmlib directory as FvwmConsoleC or invoking FvwmConsole with -e option. For example:
Module FvwmConsole -e FvwmConsoleC.pl
If neither one is installed, a simple input reading function which doesn't have editing capabilities is used.
GNU readline and FvwmConsoleC.pl have some frequent used commands in common as default. These commands are similar to emacs. For more
details, refer GNU readline man and info pages, and FvwmConsoleC.pl man page.
Ctrl-A - beginning of line
Ctrl-B - previous char
Ctrl-D - delete char
Ctrl-E - end of line
Ctrl-F - next char
Ctrl-H - backspace
Ctrl-K - erase to the end of line
Ctrl-N - next line
Ctrl-P - previous line
Ctrl-R - search reverse
Ctrl-U - delete line
Meta-B - previous word
Meta-F - next word
Esc < - beginning of history
Esc > - end of history
EXITING
FvwmConsole can be stopped by entering the EOF character (usually CTRL-D).
Note! Do not use the "quit" command, as this is an fvwm builtin: typing "quit" at the FvwmConsole command line will cause fvwm to exit.
SEE ALSO
xterm(1), FvwmConsoleC.pl(1), GNU Readline library
AUTHOR
FvwmConsole is the original work of Toshi Isogai.
3rd Berkeley Distribution 09 May 2010 (2.5.30) FvwmConsole(1)