I use ps command to manually make sure that my processes are running. But how can I automate it?
Ideally I'd like to be sent an email, or some other flag, when one of my processes stops running.
Hello,
I am given the number of seconds since the Epoch (12:00AM, jan 1, 1970). I need the current date and time. Is there a function that already does that?
Thanks for the information. More precisely, I am trying to obtain the STDIN to a Perl Script, then from the Perl script, make a system call to execute a java componenet, passing along the stardard input as STDIN, not as a parameter.
#!/usr/bin/perl
# stdin.pl
my $var = "";
while ()
{
chomp...
Is there a way to pass a variable from Perl script to a Java program, so that Java reads it using STDIN?
I can do it as command line argument, but I'd like to know how to do it through STDIN.
I am reading pipe-delimited data, line by line, from file INUSERS and storing it in a 2-dimensional array. However, when I print out the results, only the data for the last line of the file is being printed. AND it is being printed as many times as there are lines present in the input file!
How...
ok, for some reason I could not find this example in O'Reily book.
I want to substitute every string of "==" to be "|", in $_
so I say:
s/==/|/;
but that only substitutes the first occurence of "==", not all of them. How do you substitute all of them?
After loaded in my users from an LDIF file, the only way I know to activate them is one user at a time. What if you have like 10k new users? Is there a way to activate them all at once?
I have a tab delimited file that I want to read in, such that each line is a hash and the entire file is an array of the hashes. To test it, I am printing a CityName. What's wrong with this picture?:
my @arrayOfContacts;
my $numOfContacts =0;
while (<INCONT>){
chomp($_)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.