Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by theSeeker03

  1. theSeeker03

    Monitoring processes.

    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.
  2. theSeeker03

    Sendmail: sendinga simple email

    'man sendmail' does not provide an example. I tried to guess on how to use it but so far got nowhere.
  3. theSeeker03

    Sendmail: sendinga simple email

    Can anyone give me example of sending a short and simple email from UNIX command line using sendmail? Is sendmail useed like that?
  4. theSeeker03

    Given: # of seconds , need: date!

    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?
  5. theSeeker03

    Passing variable to Java from Perl using STDIN

    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...
  6. theSeeker03

    Passing variable to Java from Perl using STDIN

    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.
  7. theSeeker03

    UNIX system variables

    How can read a value of a UNIX system variable? if i could see just one example ... thanks
  8. theSeeker03

    PROBLEM in working with 2-dimensional array

    Thank you, icrf and chazoid. And yes, icrf, you are correct: most of my programming has been with C.
  9. theSeeker03

    Delimiter delimma

    use split function. then, loop through the results and if an element has "\" as its last character, join it with the next element of the array.
  10. theSeeker03

    PROBLEM in working with 2-dimensional array

    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...
  11. theSeeker03

    easy substitute question

    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?
  12. theSeeker03

    Active Directory: Activating the users.

    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?
  13. theSeeker03

    Reading in array of hashes

    that works. Thanks!
  14. theSeeker03

    Reading in array of hashes

    Sorry, I meant $arrayOfContacts[$numOfContacts]{"CONT_ID", with the bracket [
  15. theSeeker03

    Reading in array of hashes

    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($_)...

Part and Inventory Search

Back
Top