01-18-2011
Some of the old UNIX did initialize USER from the ownership of the tty. This is where the issue lies. remsh/rsh doesnt allocate a tty, and so cant do this. Other applications that either use "login" or correctly use the PAM method of authorization set default environment variables directly and so dont have this issue.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all,
This beats me. I have a script that executes some commands and redirects their output to some text files that I will parse. The commands are along the lines of:
dsmadmc -id=admin -pa=admin -outfile=/home/tools/qlog.txt q log f=d
If I just run the script it works. If I execute... (2 Replies)
Discussion started by: Skovian
2 Replies
2. Shell Programming and Scripting
I have a very basic script that essentially sends a log file, via FTP, to a backup server. My cron entry to run this every night is:
55 23 * * * /usr/bin/archive_logs
The script runs perfectly when executed manually, and actually worked via cron for about three weeks. However, it mysteriously... (3 Replies)
Discussion started by: cdunavent
3 Replies
3. AIX
Server, running AIX 6.1 developed strange problem when logging in via SSH -- ssh client hangs without any error.
It is possible to run commands on server, using ssh ("ssh servername ls -l" is OK)
It is possible to log in normally, using serial console connected to server.
It was possible to... (2 Replies)
Discussion started by: ivar.zarans
2 Replies
4. Shell Programming and Scripting
Hello All,
This is driving me nuts. Wrote a very simple script (it's in csh so sorry about that). Just something very simple though. Here is the catch. Works great from command line sometimes. Other times it runs no errors or anything but I never receive an email. Never runs from crontab... (6 Replies)
Discussion started by: jacktay
6 Replies
5. Shell Programming and Scripting
Guys,
I need you help please.
The script below is not working correclty for checking via a awk/if statement . Can you tell me what i am doing wrong in the script code "if($1 == "$RETENTION_LEVEL") "
Syntax
RETENTION_LEVEL=`echo $LINE | cut -f2 -d" "`
echo " ==============... (4 Replies)
Discussion started by: Junes
4 Replies
6. Solaris
Hi Admins,
HOW to set unlimited login attempts for user in Solaris ?
And do I need to insatll any packages before doing this?
Thanks. (1 Reply)
Discussion started by: manalisharmabe
1 Replies
7. UNIX for Dummies Questions & Answers
Greetings, I have a C-program that is made to implement a hidden Markov model on an input file. The program is very memory intensive.
I've installed it on my local server where I have an account and it compiles fine. The way they have the server set up is that you can either work... (1 Reply)
Discussion started by: Twinklefingers
1 Replies
8. HP-UX
Hello friends,
I need to set PATH variable for all HP-UX users. I tried to implement it using /etc/profile and /etc/sshrc both none of them work.
I don't see sshrc file anywhere.
Please advise!
TIA (4 Replies)
Discussion started by: prvnrk
4 Replies
9. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I am a root in a Unix system. My shell is bash.
2. Relevant commands, code, scripts, algorithms:
How to set... (1 Reply)
Discussion started by: me_me_me
1 Replies
10. Homework & Coursework Questions
I am sorry for creating a new topic after my previous inquiry was closed, but I tried and tried and I do not know how to edit my previous post. This is not exactly any homework, this is one of 40 questions we were expected to prepare for one of the labs. I searched and read what I could and still... (4 Replies)
Discussion started by: me_me_me
4 Replies
LEARN ABOUT CENTOS
tapset::tty
tapset::tty(3stap) tapset::tty(3stap)
NAME
tapset::tty - systemtap tty tapset
DESCRIPTION
tty.open
Called when a tty is opened
See probe::tty.open(3stap)
for details.
tty.release
Called when the tty is closed
See probe::tty.release(3stap)
for details.
tty.resize
Called when a terminal resize happens
See probe::tty.resize(3stap)
for details.
tty.ioctl
called when a ioctl is request to the tty
See probe::tty.ioctl(3stap)
for details.
tty.init
Called when a tty is being initalized
See probe::tty.init(3stap)
for details.
tty.register
Called when a tty device is registred
See probe::tty.register(3stap)
for details.
tty.unregister
Called when a tty device is being unregistered
See probe::tty.unregister(3stap)
for details.
tty.poll
Called when a tty device is being polled
See probe::tty.poll(3stap)
for details.
tty.receive
called when a tty receives a message
See probe::tty.receive(3stap)
for details.
tty.write
write to the tty line
See probe::tty.write(3stap)
for details.
tty.read
called when a tty line will be read
See probe::tty.read(3stap)
for details.
SEE ALSO
probe::tty.open(3stap), probe::tty.release(3stap), probe::tty.resize(3stap), probe::tty.ioctl(3stap), probe::tty.init(3stap),
probe::tty.register(3stap), probe::tty.unregister(3stap), probe::tty.poll(3stap), probe::tty.receive(3stap), probe::tty.write(3stap),
probe::tty.read(3stap), stap(1), stapprobes(3stap)
IBM
--- tapset::tty(3stap)