[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] script til at chekke om en process køre



Atte André Jensen skrev:

Max Jensen wrote:
<snip>

Kunne du være lidt mere præcis. Nøjagtig hvordan ser dit script ud, hvad gør du for at køre det og hvilke fejl meddelelser får du?

mit script ser sådan ud.

  pid=""
  pid='ps -ef | grep new.i686 | awk ' {print $2}''
  echo $pid
  if [ "$pid"="" ]
  then
  echo "process not running"
else
  echo service is ok
  pid=""
  fi

når jeg starter det ved at skrive ./check (når det virker havde jeg tænkt mig at det skulle køre ved hjælp af crontab) kommer følgende fejl:
  line 3: {print: command not found

  process not running

Selv om processen køre som den skal skriver den "process not running"




 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2009-10-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *