Skip to content

Commit

Permalink
Editilaukselle lisäparametri
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Selkamo committed Jun 22, 2017
1 parent 9b18e68 commit 2892f78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editilaus.pl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
$dirri3 = $ARGV[2]; # minne siirretään kun erroroi
$email = $ARGV[3]; # kenelle meilataan jos on ongelma
$emailfrom = $ARGV[4]; # millä osoitteella meili lähetetään
$lisaparametri = $ARGV[5]; # mahdolliset lisäparametrit editilaus_in.inc:lle

$pupedir = abs_path(dirname($0)) . "/tilauskasittely/"; # pupesoftin tilauskäsittely hakemisto
$komento = "/usr/bin/php"; # polku php -komentoon
Expand Down Expand Up @@ -116,7 +117,7 @@
#print "pupesoft editilaus.pl v1.1\n--------------------------\n\n";
#print "Edi-tilaus $file" . "\n";

$cmd = "cd ".$pupedir.";".$komento. " ".$pupedir."editilaus_in.inc ".$nimi.$edi_tyyppi;
$cmd = "cd ".$pupedir.";".$komento. " ".$pupedir."editilaus_in.inc ".$nimi.$edi_tyyppi." ".$lisaparametri;
system($cmd);

$cmd = "mv -f $nimi $dirri2";
Expand Down

0 comments on commit 2892f78

Please sign in to comment.