mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
New: Show process id in all command line scripts
This commit is contained in:
parent
0bffb6e654
commit
e9df560b74
|
|
@ -13,6 +13,7 @@ For users:
|
|||
- New: Add option "filter=bank" onto script rebuild_merge_pdf.php to merge
|
||||
PDF that has one payment on a specific bank account.*
|
||||
- New: [ task #901 ] Add Extrafeild on Fiche Inter
|
||||
- New: Show process id in all command line scripts
|
||||
For developers:
|
||||
- New: DolGraph can build graph with three lines.
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ if (substr($sapi_type, 0, 3) == 'cgi') {
|
|||
exit;
|
||||
}
|
||||
|
||||
// Init global variables
|
||||
// Global variables
|
||||
$version='1.0';
|
||||
$error=0;
|
||||
|
||||
|
|
@ -57,7 +57,7 @@ if (! $result > 0) { dol_print_error('',$user->error); exit; }
|
|||
$user->getrights();
|
||||
|
||||
|
||||
print "***** ".$script_file." (".$version.") *****\n";
|
||||
print "***** ".$script_file." (".$version.") pid=".getmypid()." *****\n";
|
||||
if (! isset($argv[1])) { // Check parameters
|
||||
print "Usage: ".$script_file." param1 param2 ...\n";
|
||||
exit;
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ $error=0;
|
|||
*/
|
||||
|
||||
@set_time_limit(0);
|
||||
print "***** ".$script_file." (".$version.") *****\n";
|
||||
print "***** ".$script_file." (".$version.") pid=".getmypid()." *****\n";
|
||||
|
||||
if (! isset($argv[3]) || ! $argv[3]) {
|
||||
print "Usage: $script_file bank_ref bank_receipt_number (csv|tsv|excel|excel2007) [lang=xx_XX]\n";
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ $error=0;
|
|||
*/
|
||||
|
||||
@set_time_limit(0);
|
||||
print "***** ".$script_file." (".$version.") *****\n";
|
||||
print "***** ".$script_file." (".$version.") pid=".getmypid()." *****\n";
|
||||
|
||||
$fname = DOL_DATA_ROOT.'/export-contacts.xls';
|
||||
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ $error=0;
|
|||
*/
|
||||
|
||||
@set_time_limit(0);
|
||||
print "***** ".$script_file." (".$version.") *****\n";
|
||||
print "***** ".$script_file." (".$version.") pid=".getmypid()." *****\n";
|
||||
|
||||
print "Mails sending disabled (useless in batch mode)\n";
|
||||
$conf->global->MAIN_DISABLE_ALL_MAILS=1; // On bloque les mails
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ $error=0;
|
|||
*/
|
||||
|
||||
@set_time_limit(0);
|
||||
print "***** ".$script_file." (".$version.") *****\n";
|
||||
print "***** ".$script_file." (".$version.") pid=".getmypid()." *****\n";
|
||||
|
||||
$now=dol_now('tzserver');
|
||||
$duration_value=isset($argv[2])?$argv[2]:'none';
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ $error=0;
|
|||
*/
|
||||
|
||||
@set_time_limit(0);
|
||||
print "***** ".$script_file." (".$version.") *****\n";
|
||||
print "***** ".$script_file." (".$version.") pid=".getmypid()." *****\n";
|
||||
|
||||
$now=dol_now('tzserver');
|
||||
$duration_value=isset($argv[2])?$argv[2]:'none';
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ $error=0;
|
|||
*/
|
||||
|
||||
@set_time_limit(0);
|
||||
print "***** ".$script_file." (".$version.") *****\n";
|
||||
print "***** ".$script_file." (".$version.") pid=".getmypid()." *****\n";
|
||||
|
||||
// Check security key
|
||||
if ($key != $conf->global->CRON_KEY)
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ $error=0;
|
|||
*/
|
||||
|
||||
@set_time_limit(0);
|
||||
print "***** ".$script_file." (".$version.") *****\n";
|
||||
print "***** ".$script_file." (".$version.") pid=".getmypid()." *****\n";
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ $error=0;
|
|||
*/
|
||||
|
||||
@set_time_limit(0);
|
||||
print "***** ".$script_file." (".$version.") *****\n";
|
||||
print "***** ".$script_file." (".$version.") pid=".getmypid()." *****\n";
|
||||
|
||||
$now=dol_now('tzserver');
|
||||
$duration_value=isset($argv[3])?$argv[3]:'none';
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ $error=0;
|
|||
*/
|
||||
|
||||
@set_time_limit(0);
|
||||
print "***** ".$script_file." (".$version.") *****\n";
|
||||
print "***** ".$script_file." (".$version.") pid=".getmypid()." *****\n";
|
||||
|
||||
$now=dol_now('tzserver');
|
||||
$duration_value=isset($argv[2])?$argv[2]:'none';
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ $error=0;
|
|||
*/
|
||||
|
||||
@set_time_limit(0);
|
||||
print "***** ".$script_file." (".$version.") *****\n";
|
||||
print "***** ".$script_file." (".$version.") pid=".getmypid()." *****\n";
|
||||
|
||||
// Check parameters
|
||||
if (! isset($argv[1]))
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ $error=0;
|
|||
*/
|
||||
|
||||
@set_time_limit(0);
|
||||
print "***** ".$script_file." (".$version.") *****\n";
|
||||
print "***** ".$script_file." (".$version.") pid=".getmypid()." *****\n";
|
||||
|
||||
if (! isset($argv[1]) || ! $argv[1]) {
|
||||
print "Usage: $script_file now\n";
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ $forcecommit=0;
|
|||
*/
|
||||
|
||||
@set_time_limit(0);
|
||||
print "***** ".$script_file." (".$version.") *****\n";
|
||||
print "***** ".$script_file." (".$version.") pid=".getmypid()." *****\n";
|
||||
|
||||
// List of fields to get from LDAP
|
||||
$required_fields = array(
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ $error=0;
|
|||
*/
|
||||
|
||||
@set_time_limit(0);
|
||||
print "***** ".$script_file." (".$version.") *****\n";
|
||||
print "***** ".$script_file." (".$version.") pid=".getmypid()." *****\n";
|
||||
|
||||
/*
|
||||
if (! $conf->global->LDAP_SYNCHRO_ACTIVE)
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ $forcecommit=0;
|
|||
*/
|
||||
|
||||
@set_time_limit(0);
|
||||
print "***** ".$script_file." (".$version.") *****\n";
|
||||
print "***** ".$script_file." (".$version.") pid=".getmypid()." *****\n";
|
||||
|
||||
|
||||
// List of fields to get from LDAP
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ $error=0;
|
|||
*/
|
||||
|
||||
@set_time_limit(0);
|
||||
print "***** ".$script_file." (".$version.") *****\n";
|
||||
print "***** ".$script_file." (".$version.") pid=".getmypid()." *****\n";
|
||||
|
||||
/*
|
||||
if (! $conf->global->LDAP_SYNCHRO_ACTIVE)
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ $forcecommit=0;
|
|||
*/
|
||||
|
||||
@set_time_limit(0);
|
||||
print "***** ".$script_file." (".$version.") *****\n";
|
||||
print "***** ".$script_file." (".$version.") pid=".getmypid()." *****\n";
|
||||
|
||||
// List of fields to get from LDAP
|
||||
$required_fields = array(
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ $error=0;
|
|||
*/
|
||||
|
||||
@set_time_limit(0);
|
||||
print "***** ".$script_file." (".$version.") *****\n";
|
||||
print "***** ".$script_file." (".$version.") pid=".getmypid()." *****\n";
|
||||
|
||||
$datetimeprev = time();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user