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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. kungphu

    Question about the "top" command line when using cron perl scripts

    Hi paul, the command field does not relate to the crontab entry, if you run top from the command line on fedora, it shows what processeses are running. Thanks for that Tony, I can now see which scripts are being called and how they are being called
  2. kungphu

    Question about the "top" command line when using cron perl scripts

    Hi, How do I get top to display the name of the file being interpreted rather than it just dislpaying perl under the command field? The cron files are making system calls to perl system perl somefile.pl or ./somefile.pl
  3. kungphu

    Postgres error when calling from a cron file

    I managed to sort out the above problem, i went to the etc folder and then edited the ld.so.conf file by adding the line /usr/local/pgsql/lib Then i saved the file. Then went back to the shell window and typed ldconfig and pressed enter
  4. kungphu

    Postgres error when calling from a cron file

    when i changed my cron file to 10 * * * * postgres /folderpath/file.pl I got an access denied message
  5. kungphu

    Postgres error when calling from a cron file

    Hi guys I am running a cron file which calls a perl script. When I run the perl script from the command line it executes with no errors. But when postgres runs the cron file it gets an error. This is what my cron file looks like when it calls the perl file 10 * * * * root /folderpath/file.pl...
  6. kungphu

    system call and unwanted spaces.

    Thanks, that has done the trick [thumbsup]
  7. kungphu

    system call and unwanted spaces.

    Hi I have looked at this forum http://www.tek-tips.com/viewthread.cfm?qid=820657 I am trying to make a system call to a perl program from another perl program. The program which is being called takes two numbers as its parameters. The first of which is a number read in from a text file ie...
  8. kungphu

    Question about using kill to stop a process.

    I have managed to sort the problem out myself. I simply slice the array at index i with an length of 1. And then i output the array to the same file i originally read the values in from, using the code below. open(OUT,">pidfile.pid") || die "Cannot oben file for output\n"; foreach $line...
  9. kungphu

    Question about using kill to stop a process.

    If we had processed line 2346 and killed it off. It would still remain in the pid file. How would I go about removing it from the pid file. When I initially load the pid file, I load its values into an array and then close it, like so open(FILE, "geturl.pid") or die ("unable to find file")...
  10. kungphu

    Question about using kill to stop a process.

    Thanks for the response guys, either way works fine
  11. kungphu

    Question about using kill to stop a process.

    Hi, perl newbie here. I need some help with how to use "kill" properly in perl. I have looked at other forum posts but I wasn't to sure about how to use them in my program. I have an array called @piddatta which reads in active process numbers from a pid file. I am using a loop in my main...
  12. kungphu

    Postgres time stamp calculations

    Thanks Tony that has worked a treat. [thumbsup2]
  13. kungphu

    Postgres time stamp calculations

    Hi perl, newbie here, I am working on a legacy system which has been developed in perl and postgres. I am trying to get time stamp values from the db and use them for calculations. I do the appropriate select * from table name, and then bind the values of the columns to perl variables. The...

Part and Inventory Search

Back
Top