Jump to content

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

 

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.