Jump to content

auto start up heritrix


hyuuga

Recommended Posts

i need to start up the herirtrix tools by type bash heritrix.sh in open terminal. how to execute this command without opening the open terminal. i want to make a button in webpage that can execute this function. so that everytime i want to start up heritrix, i just click the run button and no need to open the terminal.. thank you..

Link to comment
https://forums.phpfreaks.com/topic/208611-auto-start-up-heritrix/
Share on other sites

is it correct.. i need some guide... this is the code that i got from the  last post. thank you.

 

<?php

session_start();?>

 

if ($_POST['here'])

 

{

file_exists("/root/bash/heritrix.sh")

  echo "File exists and ready to execute.";

} else {

  echo "Wooops! File is missing.";

}

if

{

is_executable("/root/heritrix.sh")

  echo "And File is executable"

  exec ("/root/heritrix.sh", &$output);

} else {

  echo "File is not executable.";

}

 

 

hola thanks a lot.. now i can open the heritrix console by click the button to open the application by using bash command

 

#!/bin/bash

#

#chkconfig:345 99 99

#Description:Script to change /dev/random

 

export HERITRIX_HOME=/root/heritrix-1.14.3

cd $HERITRIX_HOME

$HERITRIX_HOME/bin/heritrix --admin=LOGIN:PASSWORD --port=9090

 

now i want to do that the heritrix console can be startup automatically. wihout click the button...

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.