10-24-2011
10 More Discussions You Might Find Interesting
1. Programming
question: for the below program
i just printed the value for pid, child pid and parent pid
why does it give me 6 values? i assume ppid is 28086
but can't figure out why there are 5 values printed instead of just two!
can someone comment on that!
#include<stdio.h>
#define DIM 8
int... (3 Replies)
Discussion started by: a25khan
3 Replies
2. UNIX for Dummies Questions & Answers
1. If I use an software application(which connects to the database in the server) in my local pc, how many PID should be registered? Would there be PID for the session and another PID for socket connection?
2. I noticed (through netstat) that when I logged in using the my software application,... (1 Reply)
Discussion started by: pcx26
1 Replies
3. Shell Programming and Scripting
I have directory of files listed with stats.
I need to print only files with the same stats to a file.
I tried this, and it printed a blank document.
*1556 > tmp/list
it did not work
any suggestions? (3 Replies)
Discussion started by: rocinante
3 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I need to get the pid of a process and have to store the pid in a variable and i want to use this value(pid) of the variable for some process. Please can anyone tell me how to get the pid of a process and store it in a variable. please help me on this.
Thanks in advance,
Amudha (7 Replies)
Discussion started by: samudha
7 Replies
5. Shell Programming and Scripting
Dear experts,
I'm moving from SunOS to Linux.
Linux has no ptree, but it has pstree. Anyway, pstree doesn't show what ptree used to print with output nice to grep. My Linux distribution doesn't have proctree either.
This forum has few posts touching ptree/pstree topic, but I didn't... (2 Replies)
Discussion started by: bzk
2 Replies
6. Shell Programming and Scripting
Hi,
I'm trying to write a script where i'm trying to grep the PID and the associated file and list them. Then execute the KILL command sequentially on the listed PID's for ".tra" files
====================================================
ps -aux | grep mine
adm 27739 0.2 0.8 1131588... (12 Replies)
Discussion started by: murali1687
12 Replies
7. Shell Programming and Scripting
Hello,
can somebody help me on this please.
I have a list of numbers and I want to print them in one line seprated by a comma except the last one using awk
34
12
56
76
88
output
34,12,56,76,88
Thanks Sara (15 Replies)
Discussion started by: Sara_84
15 Replies
8. Shell Programming and Scripting
so if i have a list of file names, on linux system, we can use the column command to split them up into columns.
sadly, the "columns" command does not exist on some OSes.
so i found that the pr command can also work.
but, pr tends to truncate the names. There's a way around that on... (3 Replies)
Discussion started by: SkySmart
3 Replies
9. AIX
This question is asked in an interview today that I have to return output with each PID number and the count of each PID number logged today. Here is the script that I have written. Can you confirm if that would work or not. The interviewer didn't said if my answer is correct or not. Can someone... (5 Replies)
Discussion started by: Subodh Kumar
5 Replies
10. Shell Programming and Scripting
I used netstat -tp <pid> to list all Foreign Addresses i.e OutBound sockets on Linux.
Likewise, i wish to list all Foreign Addresses on Sparc Solaris.
I get illegal option -- t when i try this command on Solaris.
The second query i have is that in the output of netstat command some... (1 Reply)
Discussion started by: mohtashims
1 Replies
LEARN ABOUT DEBIAN
io::socket::unix
IO::Socket::UNIX(3perl) Perl Programmers Reference Guide IO::Socket::UNIX(3perl)
NAME
IO::Socket::UNIX - Object interface for AF_UNIX domain sockets
SYNOPSIS
use IO::Socket::UNIX;
DESCRIPTION
"IO::Socket::UNIX" provides an object interface to creating and using sockets in the AF_UNIX domain. It is built upon the IO::Socket
interface and inherits all the methods defined by IO::Socket.
CONSTRUCTOR
new ( [ARGS] )
Creates an "IO::Socket::UNIX" object, which is a reference to a newly created symbol (see the "Symbol" package). "new" optionally takes
arguments, these arguments are in key-value pairs.
In addition to the key-value pairs accepted by IO::Socket, "IO::Socket::UNIX" provides.
Type Type of socket (eg SOCK_STREAM or SOCK_DGRAM)
Local Path to local fifo
Peer Path to peer fifo
Listen Create a listen socket
If the constructor is only passed a single argument, it is assumed to be a "Peer" specification.
NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
As of VERSION 1.18 all IO::Socket objects have autoflush turned on by default. This was not the case with earlier releases.
NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE NOTE
METHODS
hostpath()
Returns the pathname to the fifo at the local end
peerpath()
Returns the pathanme to the fifo at the peer end
SEE ALSO
Socket, IO::Socket
AUTHOR
Graham Barr. Currently maintained by the Perl Porters. Please report all bugs to <perl5-porters@perl.org>.
COPYRIGHT
Copyright (c) 1996-8 Graham Barr <gbarr@pobox.com>. All rights reserved. This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
perl v5.14.2 2010-12-30 IO::Socket::UNIX(3perl)