01-17-2014
If there is no screen utility on the remote host you can use nohup instead. It does not offer a virtual terminal like screen but protects the command you started on the remote host from beeing killed when you lose connection.
Without a mailer on the remote host you could use the mailer on your local machine when your ssh-session terminates (something like ssh remote_host "nohup command_on_remote_host"; echo "it's done"|mail -s "Completed" $USER@domain.com), but I do not think that makes much sense because you'd receive the mail when the ssh-session quits for any reason - disconnects included.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do I detach an attachment using mailx in a script?
I haven't a clue
vGnp (1 Reply)
Discussion started by: vGnp
1 Replies
2. Solaris
My Java application runs on SunOS 5.8. Our use of a 3rd party class
requires us to modify the Style Manager-Window setting "Allow Primary Windows On Top" - the default for this is on, we need to turn it off.
Is there any way for our application, or our installation, to modify this setting? We... (0 Replies)
Discussion started by: ped52
0 Replies
3. Programming
I need to find out where a usb flash memory drive is mounted. I have used prtconf and iostat to find the information and then used popen to parse the information to find what i need. I am wondering if there are some generic functions such as ddi_ or usb_ that i can use to find such info. I would... (1 Reply)
Discussion started by: jtcoelho
1 Replies
4. Programming
Hi all,
Do we have anyway to get the freediskspace for within a C program?
I need functionality similar to 'df -h' -> which gives the % of utilization...
Otherwise, if we go and use 'system ("df -h /home/myhome/")', do we have any way of capturing the output into a string and parse the... (2 Replies)
Discussion started by: SriSri
2 Replies
5. Programming
Hi Gurus,
I want to programmatically detect what Linux flavour I have in my m/c, detailed OS-name and its version,
e.g. is it RHEL, SUSE, Debian etc.
----------------------------------------------------------------
Flavour OS-Nname version... (4 Replies)
Discussion started by: krishnamurthig
4 Replies
6. UNIX Desktop Questions & Answers
Is there a way to resize x clients after they're started either on the command line or programmatically?
I'm using Cygwin and typically start my root window, wm, and four xterms. By the end of the day they're all over the place with different sizes. I'd like to be able to enter a single command... (0 Replies)
Discussion started by: gctaylor
0 Replies
7. UNIX for Advanced & Expert Users
Hello Experts,
I am working on a software that has network client-server architecture. I need to have a mechanism that notifies me upon change of dhcp address change locally or at remote machine. Windows have IP Helper APIs to get address change notification. Is there something similar in Unix?... (3 Replies)
Discussion started by: GajendraSharma
3 Replies
8. Shell Programming and Scripting
I make to parse the release version from a text file and set the release version label into a Makefile variable. I tried:
VERSION := `grep vsn s1db.app|sed -e s/*\"// -e s/\"*//`
but looks like make, unlike shell, literally just take the entire `grep ...` as the variable value.
Then I tried... (3 Replies)
Discussion started by: benkial
3 Replies
9. Solaris
Hello all,
I have a small C++ app for my solaris admins. I need to set it up so they can reset a users password. The admin does not have the old password. How can I reset a users password to a temp password either using passwd or PAM? I need to do this from within my C++ app. I have searched... (3 Replies)
Discussion started by: ChickenPox
3 Replies
LEARN ABOUT ULTRIX
cellsofscreen
BlackPixelOfScreen(3X11) MIT X11R4 BlackPixelOfScreen(3X11)
Name
BlackPixelOfScreen, WhitePixelOfScreen, CellsOfScreen, DefaultColormapOfScreen, DefaultDepthOfScreen, DefaultGCOfScreen, DefaultVisualOf-
Screen, DoesBackingStore, DoesSaveUnders, DisplayOfScreen, XScreenNumberOfScreen, EventMaskOfScreen, HeightOfScreen, HeightMMOfScreen, Max-
CmapsOfScreen, MinCmapsOfScreen, PlanesOfScreen, RootWindowOfScreen, WidthOfScreen, WidthMMOfScreen - screen information functions and
macros
Syntax
BlackPixelOfScreen(screen)
WhitePixelOfScreen(screen)
CellsOfScreen(screen)
DefaultColormapOfScreen(screen)
DefaultDepthOfScreen(screen)
DefaultGCOfScreen(screen)
DefaultVisualOfScreen(screen)
DoesBackingStore(screen)
DoesSaveUnders(screen)
DisplayOfScreen(screen)
int XScreenNumberOfScreen(screen)
Screen *screen;
EventMaskOfScreen(screen)
HeightOfScreen(screen)
HeightMMOfScreen(screen)
MaxCmapsOfScreen(screen)
MinCmapsOfScreen(screen)
PlanesOfScreen(screen)
RootWindowOfScreen(screen)
WidthOfScreen(screen)
WidthMMOfScreen(screen)
Arguments
screen Specifies a pointer to the appropriate structure.
Description
The macro returns the black pixel value of the specified screen.
The macro returns the white pixel value of the specified screen.
The macro returns the number of colormap cells in the default colormap of the specified screen.
The macro returns the default colormap of the specified screen.
The macro returns the default depth of the root window of the specified screen.
The macro returns the default GC of the specified screen, which has the same depth as the root window of the screen.
The macro returns the default visual of the specified screen.
The macro returns or which indicate whether the screen supports backing stores.
The macro returns a Boolean value indicating whether the screen supports save unders.
The macro returns the display of the specified screen.
The function returns the screen index number of the specified screen.
The macro returns the root event mask of the root window for the specified screen at connection setup.
The macro returns the height of the specified screen.
The macro returns the height of the specified screen in millimeters.
The macro returns the maximum number of installed colormaps supported by the specified screen.
The macro returns the minimum number of installed colormaps supported by the specified screen.
The macro returns the number of planes in the root window of the specified screen.
The macro returns the root window of the specified screen.
The macro returns the width of the specified screen.
The macro returns the width of the specified screen in millimeters.
See Also
AllPlanes(3X11), ImageByteOrder(3X11), IsCursorKey(3X11)
X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys
BlackPixelOfScreen(3X11)