04-19-2018
Update:
If anyone is interested in Telegram and Telegram bots, if you can find Telegram PHP code libs which works on PHP 5.3+ that would be very helpful.
If we can get this working, I would like to create notifications, alerts, man pages, and search in Telegram for the forums.
Thanks.
3 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi i just joined i was wanting to know if anyone knew a good program or something to help me create a bot? (1 Reply)
Discussion started by: Bigin
1 Replies
2. What is on Your Mind?
https://www.unix.com/members/1-albums212-picture687.png
Hunting Anomalous Bots - An Introduction to Cyber-Objects - Live From Cyberspace
Click title image (above) for video tutorial. (5 Replies)
Discussion started by: Neo
5 Replies
3. 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 MINIX
ttyslot
TTYSLOT(3) Library Functions Manual TTYSLOT(3)
NAME
ttyslot, fttyslot - utmp slot number
SYNOPSIS
#define _MINIX_SOURCE 1
#include <unistd.h>
int ttyslot(void)
int fttyslot(int fd)
DESCRIPTION
Ttyslot() returns the index of the login terminal in the utmp file. It tries fttyslot() on file descriptors 0, 1, and 2 to find the index.
Fttyslot() returns the utmp index of the terminal associated with file descriptor fd. First it tries to map fd to a terminal name with
ttyname(3), then it searches the ttytab(5) database with the getttyent(3) function for this terminal. This means that the utmp slot number
is the same as the ttytab entry number counting from 1. The value 0 is returned if no slot number can be found for a file descriptor.
SEE ALSO
ttyname(3), getttyent(3), utmp(5), ttytab(5), init(8).
NOTES
Since 0 is used as an error return this means that the first entry in the utmp file is not used.
Ttyslot() is often found in a UNIX implementation, fttyslot() is Minix specific.
AUTHOR
Kees J. Bot (kjb@cs.vu.nl)
TTYSLOT(3)