Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Attach process with port 2222 Post 302996445 by vivekpandit7 on Wednesday 26th of April 2017 09:42:27 AM
Old 04-26-2017
Attach process with port 2222

Hi Team,

is there any way, I can start any process for e.g. run a shell script (infinite loop) and attach it to port 2222?

I am trying to create a scenario where an application will start running at port 2222 and I will telnet the same to confirm, application port is listening.
So, requirement is, running a demo process at port 2222 and doing further checks.

Thanks
Vivek
 

10 More Discussions You Might Find Interesting

1. Solaris

Which process is on which port....

Is there a way in Solaris to find which process is using which port? (3 Replies)
Discussion started by: Kraas
3 Replies

2. AIX

Process ID using IP Port

Is there a way in AIX to determine which process is connected to a particular IP port? I know about the lsof command, but for various reasons I can't install it on the machine I want to use it on. Is there a way other than using this command? (1 Reply)
Discussion started by: dgiaimo
1 Replies

3. UNIX for Advanced & Expert Users

attach process from another ssh session

Hi, I was logged in on a server, by ssh, with a vim open, when the battery of my laptop got empty. When I return to the server by ssh, I can see my previous ssh session still open, and the vim process running (ttyp0). Is there a way to attach that vim to my new session (ttyp4)? Here's part... (2 Replies)
Discussion started by: raphinou
2 Replies

4. UNIX for Advanced & Expert Users

How to attach an xterm to a process/thread ?

Hi folks, I would like to know how to hook up an xterm to another process. Here is a high level view of what I am looking for 1. Main program starts 2. It creates an new xterm window 3. It then forks a second process & passes the xterm handle to it 4. The second process uses the second... (4 Replies)
Discussion started by: RipClaw
4 Replies

5. UNIX for Advanced & Expert Users

Which port is used by which process ?

Hi all, I work in three platforms SOLARIS,HPUX,AIX. My requirement is to find the user id which is using a particular port. So I tried searching commands which will help me to know which port is used by which process. According to the posts over here lsof makes life easy in this case. But I... (4 Replies)
Discussion started by: vikasrout
4 Replies

6. Programming

dbx - attach to process, break when crash

Hey everyone, I have a process that is crashing, and I'd like to have some way to see where it crashes. Is this possible? (2 Replies)
Discussion started by: ctote
2 Replies

7. AIX

Process running on which port

I would like to know, how to find that particular process is running on which port other than /etc/services as this file shows well known ports information Double post, continued here. If you want answers for different OS, post in a general section instead. If you want your other post moved... (0 Replies)
Discussion started by: amity
0 Replies

8. IP Networking

Tcp ip port open but no such process (merged: Release A Port)

i want to kill a tcp connection by killing its pid with netstat -an i got the tcp ip connection on port 5914 but when i type ps -a or ps-e there is not such process running on port 5914 is it possible that because i do not log on with proper user account i can not see that process running? (30 Replies)
Discussion started by: alinamadchian
30 Replies

9. UNIX for Dummies Questions & Answers

Check port 2222 is open on a remote host

I am able to connect to a remote host using the legacy IP and port 2222. Today the remote has a new IP I am unable to connect. How to check if the remote host is blocking or if its my server is unable to connect. Err Msg : telnet: Unable to connect to remote host: Connection refused Err... (5 Replies)
Discussion started by: ITDev01
5 Replies

10. IP Networking

Get process id and port from the socket

Hello, Please help me in getting the process id and the port number from the socket netstat -Aan|grep -i closed f100050010b133b8 tcp 0 0 *.* *.* CLOSED f1000500119b53b8 tcp4 0 0 *.* *.* ... (3 Replies)
Discussion started by: Vishal_dba
3 Replies
MKTAP(1)																  MKTAP(1)

NAME
mktap - create twisted.servers SYNOPSIS
mktap [options] apptype [application_option]... mktap apptype --help DESCRIPTION
The --help prints out a usage message to standard output. --debug, -d Show debug information for plugin loading. --progress, -p Show progress information for plugin loading. --encrypted, -e Encrypt file before writing (will make the extension of the resultant file begin with 'e'). --uid, -u <uid> Application belongs to this uid, and should run with its permissions. --gid, -d <gid> Application belongs to this gid, and should run with its permissions. --append, -a <file> Append given servers to given file, instead of creating a new one. File should be be a tap file. --appname, -n <name> Use the specified name as the process name when the application is run with twistd(1). This option also causes some initialization code to be duplicated when twistd(1) is run. --type, -t <type> Specify the output file type. Available types are: pickle - (default) Output as a python pickle file. source - Output as a .tas (AOT Python source) file. apptype Can be 'web', 'portforward', 'toc', 'coil', 'words', 'manhole', 'im', 'news', 'socks', 'telnet', 'parent', 'sibling', 'ftp', and 'mail'. Each of those support different options. portforward options -h, --host <host> Proxy connections to <host> -d, --dest_port <port> Proxy connections to <port> on remote host. -p, --port <port> Listen locally on <port> web options -u, --user Makes a server with ~/public_html and ~/.twistd-web-pb support for users. --personal Instead of generating a webserver, generate a ResourcePublisher which listens on ~/.twistd-web-pb --path <path> <path> is either a specific file or a directory to be set as the root of the web server. Use this if you have a directory full of HTML, cgi, php3, epy, or rpy files or any other files that you want to be served up raw. -p, --port <port> <port> is a number representing which port you want to start the server on. -m, --mime_type <mimetype> <mimetype> is the default MIME type to use for files in a --path web server when none can be determined for a particular extension. The default is 'text/html'. --allow_ignore_ext Specify whether or not a request for 'foo' should return 'foo.ext'. Default is off. --ignore-ext .<extension> Specify that a request for 'foo' should return 'foo.<extension>'. -t, --telnet <port> Run a telnet server on <port>, for additional configuration later. -i, --index <name> Use an index name other than "index.html" --https <port> Port to listen on for Secure HTTP. -c, --certificate <filename> SSL certificate to use for HTTPS. [default: server.pem] -k, --privkey <filename> SSL certificate to use for HTTPS. [default: server.pem] --processor <ext>=<class name> Adds a processor to those file names. (Only usable if after --path) --resource-script <script name> Sets the root as a resource script. This script will be re-evaluated on every request. This creates a web.tap file that can be used by twistd. If you specify no arguments, it will be a demo webserver that has the Test class from twisted.web.test in it. toc options -p <port> <port> is a number representing which port you want to start the server on. mail options -r, --relay <ip>,<port>=<queue directory> Relay mail to all unknown domains through given IP and port, using queue directory as temporary place to place files. -d, --domain <domain>=<path> generate an SMTP/POP3 virtual maildir domain named "domain" which saves to "path" -u, --username <name>=<password> add a user/password to the last specified domains -b, --bounce_to_postmaster undelivered mails are sent to the postmaster, instead of being rejected. -p, --pop <port> <port> is a number representing which port you want to start the pop3 server on. -s, --smtp <port> <port> is a number representing which port you want to start the smtp server on. This creates a mail.tap file that can be used by twistd(1) telnet options -p, --port <port> Run the telnet server on <port> -u, --username <name> set the username to <name> -w, --password <password> set the password to <password> socks options -i, --interface <interface> Listen on interface <interface> -p, --port <port> Run the SOCKSv4 server on <port> -l, --log <filename> log connection data to <filename> ftp options -a, --anonymous Allow anonymous logins -3, --thirdparty Allow third party connections --otp Use one time passwords (OTP) -p, --port <port> Run the FTP server on <port> -r, --root <path> Define the local root of the FTP server --anonymoususer <username> Define the the name of the anonymous user manhole options -p, --port <port> Run the manhole server on <port> -u, --user <name> set the username to <name> -w, --password <password> set the password to <password> words options -p, --port <port> Run the Words server on <port> -i, --irc <port> Run IRC server on port <port> -w, --web <port> Run web server on port <port> AUTHOR
Written by Moshe Zadka, based on mktap's help messages REPORTING BUGS
To report a bug, visit http://twistedmatrix.com/bugs/ COPYRIGHT
Copyright (C) 2000-2008 Twisted Matrix Laboratories. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. SEE ALSO
twistd(1) July 2001 MKTAP(1)
All times are GMT -4. The time now is 05:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy