08-06-2009
Right ... But I need to use this in a script such that telnet returns me some information that the connection was successfull and then I can use it for the rest of my script.
Can you please let me know how will I use telnet in the script for the above requirement?
Thanks,
Vihang.
10 More Discussions You Might Find Interesting
1. HP-UX
Hi UNIX guru's,
Have recently upgraded Oracle from 8i to 10g on an HP-UX (RISC) 11.11 box.
At least twice a day the database stops accepting incoming connections and the following errors are observed in the various logs.
The box needs to be rebooted to get everything going again.
The... (4 Replies)
Discussion started by: mat_cottrell
4 Replies
2. IP Networking
Hello
i have application that using ports , how can i check if the port im using is not captured by any applications? (1 Reply)
Discussion started by: umen
1 Replies
3. AIX
How can i check which service is activated on my AIX Box?
how one can check particular port is open or not (like ftp/telnet port)?
I dont have admin rights (1 Reply)
Discussion started by: ashish4422
1 Replies
4. Shell Programming and Scripting
Hi,
is it possible to check smb-connections of my server? I want to see, which files are opened from which station (ip).
The command who only works local (via terminal).
Regards. (4 Replies)
Discussion started by: inoxx
4 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Please help me out, how to check whether a port currently being used or not.
is there any command which give the result?
Thanks
Rajesh (6 Replies)
Discussion started by: rajesh08
6 Replies
6. Shell Programming and Scripting
is there a better way to check if a port is active on linux and sunos systems?
this is currently what I'm using in my script:
netstat -an | egrep -i "$PORT"
i know this isn't the best way as there could be numbers in that output that has my port number in it but isn't necessarily a... (0 Replies)
Discussion started by: SkySmart
0 Replies
7. UNIX for Dummies Questions & Answers
Server has more TIME_WAIT connections in Apache(port 80) Hi,
My webserver has 16GB of RAM and CentOS 5.5, Apache 2.2.3, It's shared webserver used of for webhosting. I have optmized the server as :
<IfModule prefork.c>... (4 Replies)
Discussion started by: chandranjoy
4 Replies
8. Shell Programming and Scripting
hi everybody;
my code is cheking if a port is an actif or not with the cmd netstat -ln,I want first to enter the number of the port which I want to check it but I think that the value of $con in the second "if" is always "0" so the code give me always that the port is not used!!!
... (5 Replies)
Discussion started by: bassma
5 Replies
9. Red Hat
I have RHEL 5.8 in our production environment. We are using SSL, my query is how to find the port used for SSL. In /etc/services, it shows 443 but when I give
netstat -tulpn | grep 443
Or
netstat -tulp | grep https
I do not get any output.
I hope, my question is clear of how to find... (4 Replies)
Discussion started by: RHCE
4 Replies
10. Shell Programming and Scripting
I have my firewall process running
# ps -ef | grep firewall
root 21169 1 0 08:50 ? 00:00:00 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
I wish to know what ip : port number it is using. Can you please tell me how can i find out ?
I tried the below command... (4 Replies)
Discussion started by: mohtashims
4 Replies
PMIDI(1) General Commands Manual PMIDI(1)
NAME
pmidi - A midi file player for ALSA.
SYNOPSIS
pmidi [ -pclient:port ] [ -l ] [ -ddelay ] file...
DESCRIPTION
The pmidi command reads in the specified midi files and plays them through the ALSA sequencer. You can specify on the command line which
sequencer port that you wish to use. Use the -l option to get a list of possible sequencer ports for your machine.
OPTIONS
-pclient:port
Specify the ALSA port to send the midi file to.
-l List the possible output ports that could be used.
-ddelay
Delay after song ends. This is used to prevent the last note of a song being chopped off early. The default is two seconds.
Port numbers
You can specify client:port numbers in the ALSA_OUTPUT_PORTS environment variable. You can also supply a comma (or space if quoted cor-
rectly) separated list of client:port numbers. This will allow you to play midi files that use more than 16 channels.
Examples
pmidi song.mid song2.mid
pmidi -p "64:0, 64:1" song.mid
TROUBLE SHOOTING
Before you start you need to have ALSA installed and configured correctly. This man page cannot cover all general ALSA topics, but here
are a few things to check when things do not seem to be working.
Checking ALSA
1. First check that the correct sequencer modules are loaded for your sound card:
- For a card with an external Midi connection, you need to load snd-seq-midi.
- For the OPL2/3 internal synthesiser you need to load snd-synth-opl3.
- For the AWE32/64 internal synthesiser you need to load snd-synth-emu8000.
- For the SB Live! internal synthesiser you need to load snd-synth-emu10k1.
- (Let me know of any more)
2a If you have an AWE32/64 or SB Live! you will need to load the sounds with sfxload in the same way as for the standard kernel drivers.
2b If you have the OPL3 FM synthesiser you will have to load the FM instruments with sbiload. See note below.
3. Make sure that the synth in the mixer is turned up and unmuted if appropriate.
Before use
Because you may have more than one sound card and each sound card may have several MIDI connections, you have to tell pmidi which one to
use.
First find out what the possibilities are for your system:
If you run:
pmidi -l
it will give you a list of the possible devices that it can play to. On my system I get:
Port Client name Port name
64:0 Rawmidi 0 - EMU10K1 MPU-401 (U EMU10K1 MPU - 401 (UART)
65:0 Emu10k1 WaveTable Emu10k1 Port 0
65:1 Emu10k1 WaveTable Emu10k1 Port 1
65:2 Emu10k1 WaveTable Emu10k1 Port 2
65:3 Emu10k1 WaveTable Emu10k1 Port 3
128:0 FLUID Synth (28152) Synth input port (28152)
129:0 Client-129 TiMidity port 0
129:1 Client-129 TiMidity port 1
Any of the port numbers in the first column can be used with pmidi. In the example above the first one is the external Midi port, the next
four are the internal wave table synthesiser. Then there are two software synthesisers running, FluidSynth (http://www.fluidsynth.org) and
Timididy.
If you don't see anything listed then check that the correct ALSA modules are loaded as in the section "Checking ALSA".
ENVIRONMENT
ALSA_OUTPUT_PORTS Port to use in playing midi file.
SEE ALSO
playmidi(1)
AUTHOR
Steve Ratcliffe <steve@parabola.demon.co.uk>
Dec 20 2003 PMIDI(1)