Be careful that you stop the user just escaping at this point by pressing CNTL-C or CNTL-Z. Usually an stty -isig can acheive this, but, of course, it may affect later functionality. You can turn it back on with stty isig
We acheived this by adding the following to /etc/profile:-
This allows you to set up processing based on primary group. You could introduce a loop looking at all groups by changing it to id -Gn but that may produce unwanted results I suppose if people with more groups run several startup scripts and the order may not be predictable.
You will have to check the output of id for you operating system as this can vary.
Robin
Liverpool/Blackburn
UK
Last edited by rbatte1; 02-10-2012 at 06:43 AM..
Reason: Spelling and adding another option
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Please can you help me understand the significance of providing arguments under sh -s in
> ssh -qtt ${user}@${host} "sh -s "${version}"" < test.sh (4 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
how to turn off the banner "SSH-2.0-OpenSSH_5.2"?
I am using RedHat Advanced Server 4
#telnet localhost 22
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
SSH-2.0-OpenSSH_5.2 (3 Replies)
Good afternoon,
I'm currently working on an IBM 9110-510, with an AIX 6.1 on it.
Currently, I've put an HyperTerminal on the machine vty0. Folowing the procedure given by a support guy(§details), I'm able to get to the AIX banner
... (6 Replies)
Hi,
Can anyone suggest a Unix command or c-shell algorithm to simulate to behavior of "wall" command minus the "all users"? What I'm trying to do is to send a notice to just one particular user but i dont want other remotely-logged-on users to receive the message (on the pseudo-terminals). I... (6 Replies)
Hi Friends,
Is there any command in AIX that can give me a summary of the users like we obtain by using "prstat -t" in Solaris?
Request your help.
Regards,
Aeby Samuel. (4 Replies)