9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
My script work on Linux but not work in sun os.
my script.
logFiles="sentLog1.log sentLog2.log"
intial_time="0 0"
logLocation="/usr/local/tomcat/logs/"
sleepTime=600
failMessage=":: $(tput bold)Log not update$(tput rmso) = "
successMessage="OK"
arr=($logFiles)... (7 Replies)
Discussion started by: ooilinlove
7 Replies
2. What is on Your Mind?
I've tried to totally ignore Netfix to date, though I might change my mind. But I refuse to keep a Windows box running for any reason.
Is anyone streaming movies from Netflix and watching them on a Linux box?
I went to netflix.com to look for the requirements page. None. OK, how about a... (4 Replies)
Discussion started by: KenJackson
4 Replies
3. Shell Programming and Scripting
This script used to work on windows but is erroring our at line 25 when run under linux. The specific errir that i get is "Can't call method "mtime" on an undefined value at ./make_event_log_index.pl line 25."
Any help would be appreciated
... (4 Replies)
Discussion started by: binary-ninja
4 Replies
4. Linux
Earlier we are using solaris machine to run our script which is having korn shell. Due to decommision of that machine we have to switch to Linux machine which is also having korn shell.
Do the commands on solaris machine will also work on linux machine or should i have to change any thing? One... (4 Replies)
Discussion started by: sanapart
4 Replies
5. UNIX for Dummies Questions & Answers
i got my computer in 2k, built it myself. top of the line then and better than most still now.
one problem however is i was never able to install unix because the old kernels were not compatible with SATA hard drives
i dont have any IDE drives nor do i want any
I want mine on SATA, but every... (5 Replies)
Discussion started by: GXDeMoNN
5 Replies
6. UNIX for Dummies Questions & Answers
Hi ,
I am using a laptop with windows XP as the operating system. i want to use linux/unix without installing it on my machine.
I heard that i can do so using some Linux bootable CD .... which can be used to work on linux environment with out physically installing it on your system.
I... (2 Replies)
Discussion started by: newbie07
2 Replies
7. UNIX for Dummies Questions & Answers
Is it possible to put the whole Linux OS on DVD and work with it?
If yes, how to do it? (1 Reply)
Discussion started by: alexhon
1 Replies
8. UNIX for Dummies Questions & Answers
Hi,
When I launch the dialup script under Debian, It says
ippp0: resource temporary unavailable
Then, # tail -f /var/log/messages
ipppd: No channels for ippp0
It`s strange, on Mandrake my modem works well.
Reply soon!
Bye :) (1 Reply)
Discussion started by: void
1 Replies
9. UNIX for Advanced & Expert Users
Ok, heres the deal...
Yesterday i installed Unix on my laptop and surprisingly everything works perfect.....exept my network card
i have a linksys USB network card (basically a thing you plug into a USB port that is now your NIC card and i connect it to my router)
But i have no idea how i... (1 Reply)
Discussion started by: Freakytah
1 Replies
LEARN ABOUT DEBIAN
isdninfo
isdninfo(4) Special files isdninfo(4)
NAME
isdninfo - ISDN status device
SYNOPSIS
#include <linux/isdn.h>
DESCRIPTION
/dev/isdninfo is a character device with major number 45 and minor number 255. It delivers status information from the Linux ISDN subsys-
tem to user level.
DATA FORMAT
When reading from this device, the current status of the Linux ISDN subsystem is delivered in 6 lines of text. Each line starts with a tag
string followed by a colon and whitespace. After that the status values are appended separated by whitespace.
idmap is the tag of the first line. In this line for every virtual channel, the Id-string of the corresponding lowlevel driver is shown.
If no driver is loaded, a - (hyphen) is shown.
chmap is the tag of line 2. In this line for every virtual channel, the channel number of the corresponding lowlevel driver is shown. If
no driver is loaded, -1 is shown.
drmap is the tag of line 3. In this line for every virtual channel, the index number of the corresponding lowlevel driver is shown. If no
driver is loaded, -1 is shown.
usage is the tag of line 4. In this line for every virtual channel, the current usage is shown. The following usage constants are defined:
ISDN_USAGE_NONE (0)
Unused channel
ISDN_USAGE_RAW (1)
Channel used by raw device (currently unsupported)
ISDN_USAGE_MODEM (2)
Channel used by some ttyI
ISDN_USAGE_NET (3)
Channel used by an ISDN net-interface
ISDN_USAGE_VOICE (4)
Channel used by some ttyI in voice mode.
ISDN_USAGE_EXCLUSIVE (64)
Channel exclusively preserved for a net-interface. This value is logically or'ed with one of the other codes.
ISDN_USAGE_OUTGOING (128)
Channel is used outgoing. This value is logically or'ed with one of the other codes. It is set, when dialling is started and
reset, when either dialling failed or after hangup. Therefore, it is not always an indicator for an established connection.
To get a reliable indicator for an established connection, the driver flags (see below) have to be inspected also.
flags is the tag of line 5. In this line for every driver slot, it's B-Channel status is shown. If no driver is registered in a slot, a ?
is shown. For every established B-Channel of the driver, a bit is set in the shown value. The driver's first channel is mapped to
bit 0, the second channel to bit 1 and so on.
phone is the tag of line 6. In this line for every virtual channel, the remote phone number is shown if the channel is active. A ??? is
shown, if the channel is inactive.
BLOCKING BEHAVIOUR
After opening the device, at most 6 lines can be read by a user process. After that, the user process is blocked. Whenever a status change
happens, the process is allowed to read 6 more lines, starting with line one.
IOCTL FUNCTIONS
Currently, there are two ioctl calls supported:
IIOCGETDVR
Get Revision information.
Returns an unsigned long value v, representing various user level interface revisions, where
(v & 0xff)
is the revision of the modem-register info, available via ioctl on /dev/isdnctrl.
((v >> 8) & 0xff)
is the revision of the net-interface config data, available via ioctl on /dev/isdnctrl. and
((v >> 16) & 0xff)
is the revision of the data delivered via /dev/isdninfo itself.
IIOCGETCPS
Get transfer statistics.
Returns the number of bytes transferred so far for all virtual channels. The third parameter should be a pointer to an array of
unsigned long of size ISDN_MAX_CHANNELS * 2. This array is filled with the byte counter values upon return.
OTHER CONSTANTS
There are some more useful constants defined in /usr/include/linux/isdn.h:
ISDN_TTY_MAJOR
The major device number of /dev/ttyI.
ISDN_TTYAUX_MAJOR
The major device number of /dev/cui.
ISDN_MAJOR
The major device number of /dev/isdnctrl, /dev/isdninfo, /dev/ippp and /dev/isdn
ISDN_MAX_DRIVERS
The number of driver slots.
ISDN_MAX_CHANNELS
The number of virtual channels.
ISDN_MINOR_CTRL
The minor device number of /dev/isdnctrl0.
ISDN_MINOR_CTRLMAX
The minor device number of /dev/isdnctrl63.
ISDN_MINOR_PPP
The minor device number of /dev/ippp0.
ISDN_MINOR_PPPMAX
The minor device number of /dev/ippp64.
ISDN_MINOR_STATUS
The minor device number of /dev/isdninfo.
Other constants, necessary for ioctl's on /dev/isdnctrl are listed in isdnctrl(4).
AUTHOR
Fritz Elfert <fritz@isdn4linux.de>
SEE ALSO
isdnctrl(4), icnctrl(4).
ISDN 4 Linux 3.25 1999/09/06 isdninfo(4)