Send input in cron jobs


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Send input in cron jobs
# 1  
Old 08-09-2014
Send input in cron jobs

hello dear
i want run this code in cron jobs every 30 minute.please help me how am i send inpot in cron jobs?Smilie

PHP Code:
 <tr style="color:black" style="height:20" style="color:white;font-weight: bold;font-size:11pt">
        
        <td  >
        <INPUT TYPE="TEXT" NAME="ushoot" VALUE="<?=$row['ushoot'];?>" style="background:#FFD4AA;direction:ltr"size="10" >
        
        </td>
        <td  >
        <INPUT TYPE="TEXT" NAME="oposs" VALUE="<?=$row['oposs'];?>" style="background:#FFD4AA"size="10" ></td>
            <td  >
        <INPUT TYPE="TEXT" NAME="uposs" VALUE="<?=$row['uposs'];?>" style="background:#FFD4AA"size="10" ></td>
        <td  >
        <INPUT TYPE="TEXT" NAME="1" VALUE="" style="background:#FFD4AA"size="10" ></td>
        <td  >
        <INPUT TYPE="TEXT" NAME="2" VALUE="" style="background:#FFD4AA"size="10" ></td>        
        </tr>
<tr><td colspan="11"  style="height:30px">
id : <INPUT TYPE="text" NAME="id_team" disabled="true" VALUE="<?php echo $id_team ?>" style="background:#FFD4AA;"size="20" >
<input type="submit" value="send"  name="edited" class="btn" style="background-color:#FF7F00;width:100px" />
# 2  
Old 08-09-2014
The cron facility runs shell scripts. This is not a shell script.

Cron jobs are not interactive. You can redirect input to your cron script in the crontab entry that schedules your cron jobs, or your cron script can read data from a file that will contain the data you want the script to process at the time it is run.
This User Gave Thanks to Don Cragun For This Post:
# 3  
Old 08-09-2014
dear what is cron script?
# 4  
Old 08-09-2014
A cron script is the set of shell commands you ask cron to run when you use crontab to schedule a cron job to be run.
# 5  
Old 08-09-2014
at this time i'm need function for send input just only run this functions.later i'm need cron script.
# 6  
Old 08-11-2014
Maybe you should start off by describing clearly what process you need to occur in a logical flow and then show us the code you have written. When you are looking to get input to code being run by cron, it will most likely need to be in a file that can be read in. There is no screen/terminal/console associated with the processes scheduled by cron

If you write your logical steps one on each line then highlight the block and press the LIST button (same as in most word processors) then you can build a list to make it easier to read. You can highlight sections and press the LIST button again to indicate loops if you need to like this:-
Quote:
[LIST]
[*]First line
[*]Second line
[*]Third line
[LIST]
[*]Sub-list line 1
[*]Sub-list line 2
[/LIST]
[*]Fourth line
[/LIST]
.... creates this:-
  • First line
  • Second line
  • Third line
    • Sub-list line 1
    • Sub-list line 2
  • Fourth line


Regards,
Robin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Cron jobs and at jobs

There are two jobs in Solaris , Cron and at jobs.. I know how to disable or enable cron jobs. How can I enable at jobs and disable it. Kindly help. Rj (2 Replies)
Discussion started by: jegaraman
2 Replies

2. Shell Programming and Scripting

cron jobs

Hi, please help on this am trying to exec the below mentioned cron jobs but its getting failed fro the past two days ###but when am trying to execte the cron by the times 23,29 18 * * * /export/home/inrvgo/thelak/China.sh its getting exec properly please help on this #... (8 Replies)
Discussion started by: thelakbe
8 Replies

3. Shell Programming and Scripting

Help with cron jobs

Hi Frenz, How do we get a cron job running in background to foreground ? (3 Replies)
Discussion started by: mkalase
3 Replies

4. Linux

cron jobs

I created a php script. I'd like to have it run as a cron job every day at 10:30am. So i added 30 10 * * * /script.php to the cron file Is it possible to run the script on the command line to test it out ? (1 Reply)
Discussion started by: dannyd
1 Replies

5. Solaris

Cron Jobs

I'm trying to run cron jobs to start any inhibited processes after a system reboot. I can schedule th cron, but i'm confused as to how to incorporated the reboot, since reboot is scheduled at different times, once every month. How can I write this to start every 15 min after after a reboot ... (2 Replies)
Discussion started by: Remi
2 Replies

6. UNIX for Advanced & Expert Users

cron jobs

I need to monitor my cron jobs with another unix machine since occasionally the cron will go down on the main server but there are no errors. Can anyone help with a script to write to use the cron on the back up machine to monitor the main server? I am using SCO and the cron jobs have been... (3 Replies)
Discussion started by: rmarral
3 Replies

7. Solaris

Cron Jobs

whats up, Have some questions about cron jobs, I am fairly new to the unix os. My cronjob sends all output to my mail, does anyone know how to redirect output to come out on the screen??? Thanks...... (6 Replies)
Discussion started by: lewisoco
6 Replies

8. UNIX for Dummies Questions & Answers

Cron Jobs

Where can someone find info on Cron Jobs? Very new to UNIX and the PC I inherited looks to have several of them. Looks like they are some kind of background program that runs automatically at specified times. Would like to delete some of them and know more about them. (6 Replies)
Discussion started by: dereckbc
6 Replies

9. UNIX for Dummies Questions & Answers

cron jobs

I was wondering if itīs possible to cron job not to run on a certian day and time. Iīve got a job that runs everyday at 08:00 but would like it not to run on the 20:th between 08:00 and 10:00 Anyone know if this is possible, and if. How do i do it? regards... dOzY (3 Replies)
Discussion started by: dozy
3 Replies

10. Shell Programming and Scripting

cron jobs

hi folks, I need an explanation on cron jobs with an example (4 Replies)
Discussion started by: vijaysabari
4 Replies
Login or Register to Ask a Question