You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2022-06-23 16:58:03

spinal_df
Member
Registered: 2019-02-20
Posts: 10

Doubt with crontask

Dears,
       about on glpi and fusion, now have new option with crontasks:

example:

assets --> crontasks

or

assets --> host --> cron tasks option:

Link:

https://YOUR_SERVER/glpi/plugins/fusioninventory/front/crontask.php


But I don't have idea as execute this tasks:

My examples:

##########################
Teste 1

##########################
# My code examples:

Cron tasks   

Name   
test cron (save) backup --> Somente p/ copiar

Enabled
yes

Command   

SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/tmp
echo 'test' >> /tmp/teste.file

Execution user   
root

Storage   
Storage user   

Minute    Hour    Day    Month    Year    Week day
*/1
*
*
*
2022
*

Creation Date   
22-06-2022 11:40:06
 
Computer   
example
###########
I tried with php code too.

#!/usr/bin/php
<?php

//create text file
touch("abc.txt");

?>

When I try run with fusioninventory-agent this job doesn't execute. Any idea or more info or doc?

Last edited by spinal_df (2022-06-23 17:04:07)

Offline

Board footer

Powered by FluxBB