What is the & for in Unix?? say for example that you have a line in a shellscript that will startup a executable and you have the ampersand at the end of the line, what is it for??
any info you could spare would be much appreciated
thanks in advance (1 Reply)
In my program, I'm using argc and argv to accept command line arguments. However, if I have to get the '&' to work i.e. make it run the child as a background process, do I have to write some special code in C or does Unix handle it automatically? If I have to add the special code, how does it look... (2 Replies)
Hi
I am trying to send mail to an email id having ampersand in it.
Like abc.&.xyz@abc.com
But it is not being sent.
I also tried prefixing backslash before and after ampersand
Need Help:( (17 Replies)
Please explain the usage of ampersand in the following command
who & echo "Total number of users are `who|wc -l`"
What I understand is that ampersand is used to run some process in the background. And, what I am expecting from this command is
"Output of who should be displayed on the... (2 Replies)
In the terminal, using the ampersand allows the process to run in the background--Emacs, for example. But is there a way to automatically open Emacs as a background process so I can still use the command line? Typing the ampersand is just annoying to me, and I keep forgetting; it's just too useful... (0 Replies)
Hi, for my own interest I want to scrape a lot of data off the Maple Story game rankings page.
The problem is, when I want to get the data at this page
maplestory(dot)nexon(dot)net/Rankings/OverallRanking.aspx?type=overall&s=&world=0&job=0&pageIndex=6
It gives me the data at this page
... (3 Replies)
Gurus,
Thanks so much for your help, in advance.
I'm using ksh and outputting a literal string value to an output file, however, Unix isn't playing by SQL's rules. The ampersand character which I'm trying to disply as a knowledge base link is screwing up the output. Typically, the "&&" is... (1 Reply)
Hello everybody,
I have a Problem with sed command.
I want to replace a defined string with a string from a database field (dynamic).
e.g.
sed -i -e 's/%NAME%/'"$HNAME"'/g'
The Problem is that the $HNAME variable can contain Special characters like '&'
e.g.
HNAME="AH Kruger & Co. KG"
... (1 Reply)
I would like to open a text m3u file and add the same string to the beginning of each line. I think I am close, but I cannot figure out how to escape the ampersand in the following code:
gawk-3.1.6.exe "{print /var/media/Music2.0TB2.1USB/Audio Files/Music/Rock & Roll/ $0}" "L:\Music\Rock &... (7 Replies)
For years I have spawned shell scripts with nohup and ampersand and they run whether or not I stay logged in. Recently a client told us that we had to set a keep alive timeout on all of our Redhat 7.6 Linux servers. Our sysadmin set the following parameters in the sshd_config file on all of our... (10 Replies)
Discussion started by: gandolf989
10 Replies
LEARN ABOUT NETBSD
curses_addchstr
CURSES_ADDCHSTR(3) BSD Library Functions Manual CURSES_ADDCHSTR(3)NAME
curses_addchstr, addchstr, waddchstr, addchnstr, waddchnstr, mvaddchstr, mvwaddchstr, mvaddchnstr, mvwaddchnstr -- curses add character
strings to windows routines
LIBRARY
Curses Library (libcurses, -lcurses)
SYNOPSIS
#include <curses.h>
int
addchstr(const chtype *chstr);
int
waddchstr(WINDOW *win, const chtype *chstr);
int
mvaddchstr(int y, int x, const chtype *chstr);
int
mvwaddchstr(WINDOW *win, int y, int x, const chtype *chstr);
int
addchnstr(const chtype *chstr, int n);
int
waddchnstr(WINDOW *win, const chtype *chstr, int n);
int
mvaddchnstr(int y, int x, const chtype *chstr, int n);
int
mvwaddchnstr(WINDOW *win, int y, int x, const chtype *chstr, int n);
DESCRIPTION
These functions add character strings and attributes to stdscr or to the specified window.
The addchstr() function will add the characters and their attributes passed in chstr to stdscr starting at the current cursor position. Any
character attributes set in chstr will be merged with the background attributes currently set on stdscr. The waddstr() function does the
same as addchstr() but adds the string to the window specified by win().
The addchnstr() function will add the contents of string to stdscr but will limit the number of characters added to be, at most, n. If n is
-1 then addchnstr will add the number of characters contained in the null terminated string chstr. Any character attributes set in chstr
will be merged with the background attributes currently set on stdscr.
The waddchnstr() function does the same as addchnstr but adds the string to the window specified by win.
The functions mvaddchstr(), mwaddchnstr(), mvwaddchstr() and mvwaddchnstr() are the same as the functions addchstr(), waddchstr(),
waddchstr() and waddchnstr(), respectively, except that wmove() is called to move the cursor to the position specified by y, x before the
string is added to the window.
RETURN VALUES
The functions will return one of the following values:
OK The function completed successfully.
ERR An error occurred in the function.
SEE ALSO curses_addch(3), curses_addstr(3), curses_attributes(3), curses_cursor(3), curses_inch(3)STANDARDS
The NetBSD Curses library complies with the X/Open Curses specification, part of the Single Unix Specification.
HISTORY
These functions first appeared in NetBSD 2.0.
BSD May 21, 2003 BSD