currently, I have a problem in a stress test bash script.
i´m using the following command:
--> myprogram is watching for stdin via select
The problem is that it will work a couple of times. After that, the stdin fd from the application is going crazy and fires all the time with 100% cpu utilization because there is no valid stdin anymore.
I figured out to use "unbuffer" for this case but it doesn´t solve the problem but it makes is far better (much more tries before error on stdin).
I am using pipes (specifically piping out) in Perl to put an array from one file into an array in a different file. I can't figure out how to transfer the array. I kow how to open the pipe : open (FILEHANDLE, "| file") or die~
but how do I transfer the array. I think it has something to do with... (1 Reply)
Hi,
Can I just quick pick everyone brain here about the following:
There is a security audit going on at the company I work for and one of the things that needed to be resolved was that there were a lot of users who don't have a home directory.
As this is a fairly large environment of over... (5 Replies)
Hi,
Can anyone please guide me how can I remove/block a user from a server access.
/usr/sbin/adduser -d /home/john john
echo ****** | passwd --stdin john
I used the above command to add a user "john". How do I delete and block john.
Appreciate your responses. (1 Reply)
Hi,
Can anyone please guide me how can I remove/block a user from a server access.
/usr/sbin/adduser -d /home/john john
echo ****** | passwd --stdin john
I used the above command to add a user "john". How do I delete and block john.
Appreciate your responses.... (2 Replies)
A gnome session is launched by UserA of System A, I am connected to userB of System B(or A) through PUTTY. I want to launch an application for eg: gedit through Putty in the display of system A. how can I achieve this.
for eg:-
root is logged in to System A, with gdm.
DISPLAY=0.0, ip =... (4 Replies)
I'm more familiar with bash/ksh that csh/tcsh. With that said, I recently ran across a problem with tcsh.
Our system admin recently installed purify on our solaris 8 system. In order to use purify you have to execute a Rational script in order to setup the paths and some environment variables... (3 Replies)
Hi, all,
I am a newbie to linux authentication part.
Questions below really puzzle me:
How to authenticate users from local storage(passwd shadow) and nis server?
(Without PAM)
getpwnam_r() will return a '*' in the pw_passwd field of "struct passwd".
I can parse /etc/shadow. But how... (1 Reply)
Dear all,
I am a beginner with Solaris.
I unfortunately remove the Application Manager from the Front Panel, and I really don't know how to put it again, or from where launch it...
Could anyone help me? (1 Reply)
good evening .. I have a plea, who I can help me with a management application user rights on the files in a Unix / Linux
I need for college .. .. and not told us no clue .. thank you (1 Reply)
Gents
I want command to export password of appuser to /opt/appuser.out
user password will be changed by Access Management System from time to time.
Application need this password to stay running otherwise will be impacted.
Application will keep reading this file /opt/appuser.out to get... (3 Replies)
Discussion started by: AbuAliiiiiiiiii
3 Replies
LEARN ABOUT DEBIAN
gnupg::handles
GnuPG::Handles(3pm) User Contributed Perl Documentation GnuPG::Handles(3pm)NAME
GnuPG::Handles - GnuPG handles bundle
SYNOPSIS
use IO::Handle;
my ( $stdin, $stdout, $stderr,
$status_fh, $logger_fh, $passphrase_fh,
)
= ( IO::Handle->new(), IO::Handle->new(), IO::Handle->new(),
IO::Handle->new(), IO::Handle->new(), IO::Handle->new(),
);
my $handles = GnuPG::Handles->new
( stdin => $stdin,
stdout => $stdout,
stderr => $stderr,
status => $status_fh,
logger => $logger_fh,
passphrase => $passphrase_fh,
);
DESCRIPTION
GnuPG::Handles objects are generally instantiated to be used in conjunction with methods of objects of the class GnuPG::Interface.
GnuPG::Handles objects represent a collection of handles that are used to communicate with GnuPG.
OBJECT METHODS
Initialization Methods
new( %initialization_args )
This methods creates a new object. The optional arguments are initialization of data members.
hash_init( %args ).
OBJECT DATA MEMBERS
stdin
This handle is connected to the standard input of a GnuPG process.
stdout
This handle is connected to the standard output of a GnuPG process.
stderr
This handle is connected to the standard error of a GnuPG process.
status
This handle is connected to the status output handle of a GnuPG process.
logger
This handle is connected to the logger output handle of a GnuPG process.
passphrase
This handle is connected to the passphrase input handle of a GnuPG process.
command
This handle is connected to the command input handle of a GnuPG process.
options
This is a hash of hashrefs of settings pertaining to the handles in this object. The outer-level hash is keyed by the names of the
handle the setting is for, while the inner is keyed by the setting being referenced. For example, to set the setting "direct" to true
for the filehandle "stdin", the following code will do:
# assuming $handles is an already-created
# GnuPG::Handles object, this sets all
# options for the filehandle stdin in one blow,
# clearing out all others
$handles->options( 'stdin', { direct => 1 } );
# this is useful to just make one change
# to the set of options for a handle
$handles->options( 'stdin' )->{direct} = 1;
# and to get the setting...
$setting = $handles->options( 'stdin' )->{direct};
# and to clear the settings for stdin
$handles->options( 'stdin', {} );
The currently-used settings are as follows:
direct
If the setting "direct" is true for a handle, the GnuPG process spawned will access the handle directly. This is useful for having
the GnuPG process read or write directly to or from an already-opened file.
SEE ALSO
GnuPG::Interface,
perl v5.12.4 2009-04-21 GnuPG::Handles(3pm)