11-24-2010
man inittab
This is exactly what it's for. Why reinvent it?
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
:confused:
I have a process which was schedule to run from 8am - 6pm daily. The scripts will search & run the commands that i was predefined in the database. Ususally, there were about 6-7 jobs for each submission and each job takes about 1-2 hrs and running one by one. And, I have a cron job... (3 Replies)
Discussion started by: hk_newbie
3 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I'm very new to Unix so please bear with me... :)
Here is my requirement:
I need to create a cron job to run two different scripts at 1 a.m. every day.
Here's what I did:
I used the "crontab -e" command and created a crontab file using the vi editor.
When I exit the editor using... (3 Replies)
Discussion started by: yogiB
3 Replies
3. UNIX for Dummies Questions & Answers
Hi Everybody
I have small requirement that needs to be implemented in shell script.
Currently i have shell script which invokes a java process say "Process A" which runs in background.
If some one tries to invoke again the same shell script , then there should be some mechanism inside the... (23 Replies)
Discussion started by: appleforme1415
23 Replies
4. Shell Programming and Scripting
Hi guys,
I neet to run sqlldr to charge about 50,000 files every day to my DWH, so I need to make an script to keep about 100 processes of sqlldr running at the same time.
So, the issue is that i've been trying for a few days to make an script which can keep that amount of processes running, so... (2 Replies)
Discussion started by: razziel
2 Replies
5. Shell Programming and Scripting
Bonjour,
I have a large script with a lot of print statements and misc commands. Standard and error outputs are redirected like into the following code :
#!/usr/bin/ksh
LOG=/<some dir>/log
> $LOG
exec >>${LOG} 2>>${LOG}
print aaaaa
print bbbbb
print ccccc
...
some_cmd
That way,... (5 Replies)
Discussion started by: Fundix
5 Replies
6. Tips and Tutorials
For the newbies, I should have posted this years ago....
Here is the standard (tiny) "bread and butter" perl script (on Linux) I use in my crontab files to insure key processes are alive ( just in case ! ) like httpd, named, sshd, etc.
The example below if for named......
... (1 Reply)
Discussion started by: Neo
1 Replies
7. What is on Your Mind?
Odd thing.
I posted in the Solaris forum, new user, just asking for a bit of advice. Nothing too complicated. As of this post there have been 140 views and zero replies. So that got me thinking, is this normal? I had a look around, and I see the same thing on many other threads, and in other... (2 Replies)
Discussion started by: _JonB_
2 Replies
8. Programming
Hi
I'm adding http 1.1 GET to my project and trying to use “Keep-Alive” HTTP connections to the host, The problem is when I recv() the first page, it succeeds. However, the 2nd consecutive recv() will receive zero bytes, for which I really have no idea. As per HTTP 1.1 I have Connection: ... (6 Replies)
Discussion started by: Projecteer
6 Replies
LEARN ABOUT CENTOS
vboxgetty
vboxgetty(8) Linux System Administration vboxgetty(8)
NAME
vboxgetty - isdn voice box (getty)
SYNOPSIS
vboxgetty [OPTION] [OPTION] [...]
DESCRIPTION
Vboxgetty is the heart of vbox: it watches the isdn system and waits for incoming voice calls,
OPTIONS
-f, --file FILE
Config file to use. Default is the file '/etc/isdn/vboxgetty.conf'.
-d, --device TTY
ISDNdevice to use. You must use this option!
-h, --help
Show summary of options.
-v, --version
Show version of program.
CONFIGURING VBOX
vboxgetty should be started from the init process. To do this you need one line per vboxgetty in /etc/inittab like this one:
I5:2345:respawn:/usr/sbin/vboxgetty -d /dev/ttyI5
The next step is to set up a working configuration for all ports in /etc/isdn/vboxgetty.conf: read vboxgetty.conf(5) how to do this and
look at the example config file in /usr/doc/isdnutils/examples.
You should then create the spool directories for each user: /var/spool/vbox/<user>, /var/spool/vbox/<user>/incoming and
/var/spool/vbox/<user>/messages. Copy the example config files vbox.conf and standard.tcl from /usr/doc/isdnutils/examples to
/var/spool/vbox/<user>, read the man pages vbox.conf(5) and vboxtcl(5) and edit these config files.
Change the owner of all files in /var/spool/vbox/<user> with "chown <user>.<group> /var/spool/vbox/<user> -Rv" and correct the permissions
with "chmod o-rwx,g-rwx /var/spool/vbox/<user> -Rv".
The last step: run "init q" to force init to reread /etc/inittab
HOW IT WORKS
For each line in /etc/inittab one vboxgetty is started by init. Make sure the first field (ID) and the device file are different. Each
vboxgetty does this:
First /etc/isdn/vbox.conf is read, the global settings are loaded and then the port specific settings. Then vboxgetty waits for an incoming
call.
On an incoming call vboxgetty reads /var/spool/vbox/<user>/vbox.conf (unless you change that name), and vboxgetty determines if it should
take that call or how many RINGs it should wait. It also gets the name of the standard message, beep message, timeout message, if these
should be played and an alias for the current caller, if there is one.
If vbox has waited enough RINGs and the caller is still ringing, it takes the call and starts the tcl script /var/spool/vbox/<user>/stan-
dard.tcl (unless you change that name), and this script will do the rest (normally: play standard and beep message, record and then play
timeout message).
FILES
/etc/isdn/vboxgetty.conf
default config file
/etc/inittab
init starts vboxgetty via this file.
/etc/isdn/vboxgetty.conf
the global vbox config file
/var/spool/vbox/<user>/vbox.conf
the per user configuration file for this port
/var/spool/vbox/<user>/standard.tcl
the tcl script used to communicate with the caller
/var/run/vboxgetty-<device>.pid
process id of the vboxgetty
/var/log/vbox/vboxgetty-<device>.log
logfile of the vboxgetty
SEE ALSO
vboxgetty.conf(5), vbox.conf(5), vboxtcl(5), isdntime(5)
AUTHOR
This manual page was written by Andreas Jellinghaus <aj@dungeon.inka.de>, for Debian GNU/Linux and isdn4linux.
ISDN 4 Linux 3.13 2000/09/15 vboxgetty(8)