10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
c()
{
if something failed;then
echo "failed"
exit 1
fi
}
f()
{
functinona #if something failed call "c"
functionb #if something failed call "c"
}
f > log 2>&1 #put the log to file not print on the screen
I want all the stdout/stdrr to the log file... (3 Replies)
Discussion started by: yanglei_fage
3 Replies
2. Shell Programming and Scripting
OPTIONS="java -Xms1024M -Xmx1024M -jar craftbukkit.jar"
PROCESS=server01
screen -dmS $PROCESS $OPTIONS nogui # Starting the application
screen -x $PROCESS -X stuff `printf "stop\r"` # Closing the application
screen -x $PROCESS # Attaching to the... (3 Replies)
Discussion started by: Zanax
3 Replies
3. Shell Programming and Scripting
Hi,
I've stored the output of a command into a variable.
The variable contains the following output:
outputline1 outputline2 outputline3 ...
How can I echo the variable so that the output is as follow and not one line:
outputline1
outputline2
outputline2
...
Thanks a lot! (4 Replies)
Discussion started by: Sego
4 Replies
4. Shell Programming and Scripting
Hello everyone,
Following command sends word 'test' followed by an enter into a screen session (in our case screen_1). How do I print the result, if that would result ? How do I print the result, even if the program running in the session is locked ?
Thank you :)
screen -S screen_1 -X... (5 Replies)
Discussion started by: akula_1986
5 Replies
5. Shell Programming and Scripting
Hi
Is there some kind of generator in the internet which could help me to create a table where i will place some values.
Trying to do this with echo cmd, but maybe you will suggest me some generator fo r this.
thx.
---------- Post updated at 10:59 AM ---------- Previous update was at... (2 Replies)
Discussion started by: presul
2 Replies
6. UNIX for Dummies Questions & Answers
Hey
I am new to programming in general but am trying to work in Perl.
The thing is that almost every time I write a script (I use nedit) I get problems with Alt Gr.
E.g. In stead of } I get <gs> or in stead of \ nothing happens. Sometimes it's really bad and when I want a new line then... (1 Reply)
Discussion started by: Banni
1 Replies
7. AIX
Hi all,
Could you please tell me how to take a screenshot in aix (like Print Screen button in windows)?
Thanks (7 Replies)
Discussion started by: prashantchavan
7 Replies
8. UNIX for Dummies Questions & Answers
I have the following questions regrading Unix commands.
1. Could you provide the commands how to print the content of .profile and .shrc files on the screen using more and piple command? or a better way?
2. How can i use the head and tail to display lines from 25 through 75... or a better... (4 Replies)
Discussion started by: aadba
4 Replies
9. UNIX for Advanced & Expert Users
I have the following questions regrading Unix commands.
1. Could you provide the commands how to print the content of ".profile" and ".shrc" files on the screen using "more" and "piple" command?
2. How can i use the "head" and "tail" to display lines from 25 through 75...
3. How to search... (1 Reply)
Discussion started by: aadba
1 Replies
10. UNIX for Dummies Questions & Answers
Hi All,
Perhaps a dumb question, but how do you do a "print screen" within the X-Window in linux. I'm running KDE, is there a utility I can use in that package that I'm not aware of. Or, is there a way to turn on the <alt><print-screen> function with the keyboard?
Thanks in advance.
VJ (2 Replies)
Discussion started by: vancouver_joe
2 Replies
WINDOWLAB(1x) WINDOWLAB(1x)
NAME
windowlab - a window manager for X11
SYNOPSIS
windowlab [options...]
DESCRIPTION
windowlab is a small and simple window manager of novel design.
It has a click-to-focus but not raise-on-focus policy, a window resizing mechanism that allows one or many edges of a window to be changed
in one action, and an innovative menubar that shares the same part of the screen as the taskbar. Window titlebars are prevented from going
off the edge of the screen by constraining the mouse pointer, and when appropriate the pointer is also constrained to the taskbar/menubar
in order to make target menu items easier to hit.
WindowLab places a taskbar at the top of the screen and adds a titlebar to the top of each window. These titlebars consist of a draggable
area, and three icons on the right hand side. When left clicked, these icons:
* hide the window
* toggle the window's Z order Amiga style (if it's not at the front, bring it to the front, otherwise send it to the back)
* close the window
Another way of toggling a window's Z order (depth) is by double left clicking on the draggable part of its titlebar.
Windows' titlebars are prevented from leaving the screen and cannot overlap the taskbar.
The taskbar should list all windows currently in use. Left clicking on a window's taskbar item will give that window focus and toggle its Z
order (depth).
To resize the active window hold down alt and push against the window's edges with the left mouse button down.
If you right click outside a client window, WindowLab's taskbar becomes a menubar. Releasing the right mouse button over a selected menu
item will start a corresponding external program. WindowLab will look in each of the following files in turn for definitions of the menu
labels and commands:
* ~/.windowlab/windowlab.menurc
* ../etc/windowlab.menurc (from the directory containing the executable)
* /etc/X11/windowlab/windowlab.menurc
Each line in the menurc file should have the menu label, a colon, and then the corresponding command, eg:
The GIMP:gimp
New windows (that don't specify their location) are positioned according to the coordinates of the mouse - the top-left hand corner of a
new window is set to the location of the mouse pointer (if necessary the window will be moved to ensure that all of it is on the screen).
WindowLab has the following keyboard controls. Hold down alt and press:
* tab to give focus to the previous window
* q to give focus to the next window
* F11 to toggle fullscreen mode on and off for non transient windows
* F12 to toggle the window's depth. This is the same as left clicking a window's middle icon
OPTIONS
-font font-spec
Draw window titles with the font defined by font-spec.
-border color, -text color, -active color, -inactive color, -menu color, -selected color, -empty color
Use color for the borders, the text, the active background, the inactive background, the menubar, the selected menu item and empty
parts of the screen.
-about Print information to stdout and exit.
-display
Sets which X display will be managed by windowlab.
ENVIRONMENT VARIABLES
DISPLAY Sets which X display will be managed by windowlab.
MENU SYSTEM
This version of WindowLab supports the Debian Menu subsystem. To update the menus, it suffices to execute the command update-menus. If
executed as root, the system setting in
/etc/X11/windowlab/windowlab.menurc
will be affected, whereas execution by any underprivileged user only effects the private resource file in
~/.windowlab/windowlab.menurc.
The following files tune the compilation of auto-generated menus:
/etc/X11/windowlab/debian_config, ~/.windowlab/debian_config
Debian-specific system configuration and user-specific overrides.
/etc/X11/windowlab/common_menu
A common tail part, that currently encompasses About, Reload and Quit. All users get these entries included in their menu.
~/.windowlab/user_menu
Menu entries hand-picked by the individual user.
SIGNALS
When WindowLab receives a SIGHUP signal, it will reload all relevant menu resource files, thus updating the menu bar.
SEE ALSO
X(7), The Inter-Client Communication Conventions Manual (from the X11R6 documentation).
AUTHOR
Nick Gravgaard (me at nickgravgaard.com)
Nick Gravgaard 1.40 WINDOWLAB(1x)