Jump to content


Photo

Ppanel execute script


  • Please log in to reply
1 reply to this topic

#1 plavko61

  • Member
  • 11 posts

0
Neutral

Posted 25 August 2010 - 12:25

I am trying to execute a script that runs in from ppanel, but i get a massage "please wait".
What am i doing wrong?

<!-- This is a sample PPanel_tutorial.xml file to show all the PPanel possibilities.
	Store this file in the directory /var/etc/ppanels

	This xml file is valid for PPanels in Garnet

	(C) Copyright 2006 dAF2000 PLi image team
	Original based on The_Hydra CPanel
-->

<!-- Each xml file starts with <directory> and ends with </directory>
	Note that name="..." is not compulsory
-->
<directory name="Autozap">
<execute name="Start"
			target="/var/script/start_autozap.sh"
			helptext="Start autozap all TV services"/>
<execute name="Stop"
			target="/var/script/stop_autozap.sh"
			helptext="Stop autozap all TV services"/>
</directory>

#!/bin/sh

# start zapping

/var/script/autozap.sh  &

#!/bin/sh

# stop zapping

kill -15 `cat /tmp/autozap.flag` ; rm /tmp/autozap.flag


Re: Ppanel execute script #2 dAF2000

  • PLi® Ex-Leden
  • 14,151 posts

+52
Good

Posted 25 August 2010 - 19:45

Try the start_autozap.sh without the "&" at the end. So, just "/var/script.autozap.sh".
Many answers to your question can be found in our wiki: http://openpli.org/wiki


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users