02-12-2014
thanks Scrutinizer
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
How do I store following command output:
export RESULT=`date` &
It works when I do :
export RESULT=`date`
But what I need is when command put it background, I also need that output going to RESULT variable.
Is there any way ?
Thanks
Sanjay (1 Reply)
Discussion started by: sanjay92
1 Replies
2. UNIX for Advanced & Expert Users
HI,
When I used to work with Sun Solaris, I used to open multiple files and without closing it I will put them in background mode(using Ctrl-ZZ). In this way I will have 4-5 files open and using fg %2, I can vi the second file..while the rest of the files will be in background mode!
I want to... (4 Replies)
Discussion started by: thiagoo
4 Replies
3. HP-UX
hi everyone,
I want to run some command automatically when the OS boot.
In Linux, I found that we just put it into /etc/rc.local file; but I don't know where to put it in HP-UX system.
please, help me........
thanks very much, :) (2 Replies)
Discussion started by: tataxin
2 Replies
4. Shell Programming and Scripting
i am trying to find a way to put an interactive script in the background after taking input from the user
a few test lines i was trying:
date
echo "Enter location"
LOCATION=
read LOCATION
sleep 100
sleep 200
date
for this small example i want the script to as the user for the... (7 Replies)
Discussion started by: epsilonaurigae
7 Replies
5. Shell Programming and Scripting
Gents,
I have a wrapper script passing couple of information to an expect script mainly responsible for spawning scp and providing the password (which is transmitted down from the main script). the main script prepare the transfer to couple of servers, idea being to transfer the files in... (3 Replies)
Discussion started by: luc3004
3 Replies
6. UNIX for Dummies Questions & Answers
I have a command running in the foreground (and so my term window is locked up) and I want to kill it, then resume it in the background and go home. It is creating a zip file, and the file will be written to the current directory - no std in / std out issues.
How do I do this? Kill it with a... (3 Replies)
Discussion started by: hindesite
3 Replies
7. Shell Programming and Scripting
Hi, guys:
I am working on my own shell using c. When I put a process into the background, how can I put it back to the foreground using tcsetpgrp?
Thanks (3 Replies)
Discussion started by: tomlee
3 Replies
8. Shell Programming and Scripting
Hi,
I am using net::ftp for transferring files now i am trying in the same Linux server as a result ftp is very fast but if the server is other location (remote) then the file transferred will be time consuming.
So i want try putting FTP part as a background process. I am unaware how to do... (5 Replies)
Discussion started by: vanitham
5 Replies
9. UNIX for Dummies Questions & Answers
hi everyone!
I would like to know if someone can tell me how to run several command in background on one line.
I already tried thisi:
cmd1 &; cmd2 &; cmd3 &
--->produce an error syntax
cmd1 ; cmd2 ; cmd3 &
--->don't execute in bg
cmd1 & cmd2 & cmd3 &
--->execute... (1 Reply)
Discussion started by: Eti38
1 Replies
10. Shell Programming and Scripting
Hi All,
Suppose I have a script and inside it I want/need to put it into background. I need the script to not react to SIGHUP signals.
I tried:
#!/bin/bash
echo "" > test_disown
mypid=$$
echo "PID=$mypid"
(
kill -SIGSTOP $mypid
jobs > myjobs
#disown -h <job-spec>
#kill -SIGCONT $mypid
)... (6 Replies)
Discussion started by: JackK
6 Replies
LEARN ABOUT SUNOS
bkgdset
curs_bkgd(3CURSES) Curses Library Functions curs_bkgd(3CURSES)
NAME
curs_bkgd, bkgd, bkgdset, wbkgdset, wbkgd - curses window background manipulation routines
SYNOPSIS
cc [ flag ... ] file ... -lcurses [ library ... ]
#include <curses.h>
int bkgd(chtype ch);
void bkgdset(chtype ch);
void wbkgdset(WINDOW *win, chtype ch);
int wbkgd(WINDOW *win, chtype ch);
DESCRIPTION
The bkgdsets() and wbkgdset() routines manipulate the background of the named window. Background is a chtype consisting of any combination
of attributes and a character. The attribute part of the background is combined (ORed) with all non-blank characters that are written into
the window with waddch(). Both the character and attribute parts of the background are combined with the blank characters. The background
becomes a property of the character and moves with the character through any scrolling and insert/delete line/character operations. To the
extent possible on a particular terminal, the attribute part of the background is displayed as the graphic rendition of the character put
on the screen.
The bkgd() and wbkgd() routines combine the new background with every position in the window. Background is any combination of attributes
and a character. Only the attribute part is used to set the background of non-blank characters, while both character and attributes are
used for blank positions. To the extent possible on a particular terminal, the attribute part of the background is displayed as the graphic
rendition of the character put on the screen.
RETURN VALUES
bkgd() and wbkgd() return the integer OK, or a non-negative integer, if immedok() is set. See curs_outopts(3CURSES).
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO
curs_addch(3CURSES), curs_outopts(3CURSES), curses(3CURSES), attributes(5)
NOTES
The header <curses.h> automatically includes the headers <stdio.h> and <unctrl.h>.
Note that bkgdset() and bkgd() may be macros.
SunOS 5.10 31 Dec 1996 curs_bkgd(3CURSES)