09-25-2006
RE: RE: Unix integraqted Automation
Quote:
Originally Posted by Jim hudson
I was interested in finding out more information as to the companies that use Unix driven automation as this coinsides with my background and I wish to persue a career in this field, Best I can tell the couple of responses Ive gotten so far didnt understand the question. I encourage all sensible replies aa they might be a great asset to me Thank you very much,
Jim Hudson
Interesting topic. Have you searched the open directory? That's an interesting question. I'll come back to that in a minute.
Interesting. I want to find out more about you.That's good information:
said encourage all sensible replies aa they might be a great asset to you Thank me very much Jim Hudson.
10 More Discussions You Might Find Interesting
1. Cybersecurity
Hi All,
I am a newbie to unix and scripting. I need to do the following job:
1. Create a batch file in windows that will call a script in a remote unix box.
2. The script now ftp files from the Remote windows machine and get them back to the local windows.
Actually, I have written the script... (3 Replies)
Discussion started by: Ankur
3 Replies
2. UNIX for Advanced & Expert Users
1.How will you do automation of Informatica jobs using Unix ?
2. How u run workflow from Unix? :) (2 Replies)
Discussion started by: kamesh83
2 Replies
3. Shell Programming and Scripting
I am searching for a automation testing tool which I can use for most of the UNIX platforms (AIX, Linux, HP UX, Solaris). The installation process of the application in all platforms is almost same. Are you aware of any automation tool (like WinRunner for Windows) to solve my problem? (5 Replies)
Discussion started by: unmanju
5 Replies
4. Shell Programming and Scripting
Hi, i'm a newbie with unix and shell scripting. I'm just trying to do a script to simply automate a unix task. This are the steps on what i want to just run on a simple shell script
1. go to a specific path (cd /folder1/folder2/)
2. edit and input a number on a file (file_id) then save exit... (6 Replies)
Discussion started by: soultransit
6 Replies
5. Shell Programming and Scripting
Hello People,
I have an outstanding issue with me
I have 5 files at location /usr/abc called
1.DE 1.TXT
2.DE 2.TXT
3.DE 3.TXT
4.DE 4.TXT
5.Fe.ok
My work involves few manual process like
transfer
1.DE 1.TXT and
5.Fe.ok to
/usr/dob location and run one script(for example -... (42 Replies)
Discussion started by: j_panky
42 Replies
6. Shell Programming and Scripting
hi
i need shell script in ksh for the automation process in informtica.
The automation process is like this .
i have a folder in unix . when this folder gets updated (like if a file or files is/are added to the folder) an event in informatica is triggered and after the process is done in... (2 Replies)
Discussion started by: kumar8887
2 Replies
7. Homework & Coursework Questions
Hi Sir,
I need unix code which will read data present in .xls file and should send an automated mails .when i place the .XLS file in a specific folder and run ***.sh from unix box
Attached Excel file contains
Subject , To , CC , Body (Paragraph 1) , Body (Paragraph 2) , Signature
When i... (2 Replies)
Discussion started by: chaitanyaS
2 Replies
8. Shell Programming and Scripting
Hello Folks - Need help really ASAP.
Iam trying to run this Shell command to get all the lists of partitions and disks from across all the servers.
#!/bin/ksh
_servers=""
_out="/tmp/output.$$"
_ssh=/usr/bin/ssh
>$_out
for s in $_servers
do
$_ssh $s fdisk -l >> $_out
done
... (8 Replies)
Discussion started by: bkilaru
8 Replies
9. Post Here to Contact Site Administrators and Moderators
I am using netteza server and i have a list of table names. I need to fetch all the data from these tables and need to create seperate zip files and store in a folder in the server. How can we automate this process. (1 Reply)
Discussion started by: nikhilthms97
1 Replies
10. UNIX for Beginners Questions & Answers
Hi folks,
has any one attempted using bots for performing tasks in unix?please share if you faced any challenges
thanks (1 Reply)
Discussion started by: tommy812
1 Replies
LEARN ABOUT REDHAT
ttyslot
TTYSLOT(3) Linux Programmer's Manual TTYSLOT(3)
NAME
ttyslot - find the slot of the current user's terminal in some file
SYNOPSIS
#include <unistd.h> /* on BSD-like systems */
#include <stdlib.h> /* on SYSV-like systems */
int ttyslot(void);
DESCRIPTION
The legacy function ttyslot() returns the index of the current user's entry in some file.
Now "What file?" you ask. Well, let's first look at some history.
Ancient History
There used to be a file /etc/ttys in Unix V6, that was read by the init(8) program to find out what to do with each terminal line. Each
line consisted of three characters. The first character was either '0' or '1', where '0' meant "ignore". The second character denoted the
terminal: '8' stood for "/dev/tty8". The third character was an argument to getty(8) indicating the sequence of line speeds to try ('-'
was: start trying 110 baud). Thus a typical line was "18-". A hang on some line was solved by changing the '1' to a '0', signalling init,
changing back again, and signalling init again.
In Unix V7 the format was changed: here the second character was the argument to getty(8) indicating the sequence of line speeds to try
('0' was: cycle through 300-1200-150-110 baud; '4' was for the on-line console DECwriter) while the rest of the line contained the name of
the tty. Thus a typical line was "14console".
Later systems have more elaborate syntax. SYSV-like systems have /etc/inittab instead.
Ancient History (2)
On the other hand, there is the file /etc/utmp listing the people currently logged in. It is maintained by login(8). It has a fixed size,
and the appropriate index in the file was determined by login(8) using the ttyslot() call to find the number of the line in /etc/ttys
(counting from 1).
The semantics of ttyslot
Thus, the function ttyslot() returns the index of the controlling terminal of the current process in the file /etc/ttys, and that is (usu-
ally) the same as the index of the entry for the current user in the file /etc/utmp. BSD still has the /etc/ttys file, but SYSV-like sys-
tems do not, and hence cannot refer to it. Thus, on such systems the documentation says that ttyslot() returns the current user's index in
the user accounting data base.
RETURN VALUE
If successful, this function returns the slot number. On error (e.g., if none of the file descriptors 0, 1 or 2 is associated with a ter-
minal that occurs in this data base) it returns 0 on Unix V6 and V7 and BSD-like systems, but -1 on SYSV-like systems.
NOTES
The utmp file is found various places on various systems, such as /etc/utmp, /var/adm/utmp, /var/run/utmp.
The glibc2 implementation of this function reads the file _PATH_TTYS, defined in <ttyent.h> as "/etc/ttys". It returns 0 on error. Since
Linux systems do not usually have "/etc/ttys", it will always return 0.
Minix also has fttyslot(fd).
HISTORY
ttyslot() appeared in Unix V7.
CONFORMS TO
XPG2. Legacy in SUSv2. Deleted in SUSv3. SUSv2 requires -1 on error.
SEE ALSO
getttyent(3), ttyname(3), utmp(5)
GNU
2002-07-20 TTYSLOT(3)