02-22-2006
what is the shell that you are using?
few shells dont support job-controls
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. 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
3. 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
4. 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
5. SCO
hi
I have SCO 5.0.6 and if I type Ctrl-D, the system will NOT enter single user mode, it goes into multi-user mode.
If I use the init 1 command, I get right back into the cycle ... an I'm at the Ctrl-D prompt again. (2 Replies)
Discussion started by: ccc
2 Replies
6. 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
7. Shell Programming and Scripting
Hi All,
i'm a newbie here, i'm just wondering in how do i run my script in background then echo it if it's done.
Please advise,
Thanks,
-nik (1 Reply)
Discussion started by: nikki1200
1 Replies
8. Linux
Hi All,
i am trying to put ls -lRt command to run in the background but it fails.
i continue to get output on screen and didnt get the command prompt right after i put the command in background.
command i am using is
ls -lRt &
i am using bash.
Can someone let me know how to... (6 Replies)
Discussion started by: omkar.jadhav
6 Replies
9. AIX
Hi this may be a easy question to answer but thanks in advance.
So I was able to download the VIOS media from IBM and currently I am burning it to a cd/dvd right now.
The steps I've collected so far are from the net. can you please confirm and add on to the steps if there are any steps... (0 Replies)
Discussion started by: Adnans2k
0 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)