I completed my Koha-MARC mapping and other parameters. I clicked the MARC Test on the Parameters page and got an OK, all is well. I tried to run the rebuildnonmarc.pl script but it "failed at line 34." My wonderful Unix-geek partner says perhaps the command line flags are not parsing correctly. I'd appreciate your advice. I have 2.0.0 installed. Thanks much! -- Kim Scannell
Kim Scannell a écrit :
I completed my Koha-MARC mapping and other parameters. I clicked the MARC Test on the Parameters page and got an OK, all is well. I tried to run the rebuildnonmarc.pl script but it "failed at line 34." My wonderful Unix-geek partner says perhaps the command line flags are not parsing correctly. I'd appreciate your advice. I have 2.0.0 installed. Thanks much!
You called it using : ./ebuildnonmarc.pl -c aren't you ? If you don't -c (confirm), the script will stop. To avoid any too-fast-launching it. -- Paul POULAIN Consultant indépendant en logiciels libres responsable francophone de koha (SIGB libre http://www.koha-fr.org)
MJ Ray a écrit :
On 2004-04-13 17:16:26 +0100 paul POULAIN <paul.poulain@free.fr> wrote:
./ebuildnonmarc.pl -c aren't you ? If you don't -c (confirm), the script will stop. To avoid any too-fast-launching it.
How does -c avoid too-fast-launching?
Many users type "./unknownscript.pl" to see how they work. Usually, when a script is called without any args, it shows it's syntax (like ./anything.pl --help). So, when I write a script that modify the DB and don't need any parameter to do it's job, I add a -c to be sure the user really want to execute it ;-) -- Paul POULAIN Consultant indépendant en logiciels libres responsable francophone de koha (SIGB libre http://www.koha-fr.org)
On 2004-04-14 13:00:34 +0100 paul POULAIN <paul.poulain@free.fr> wrote:
MJ Ray a écrit :
How does -c avoid too-fast-launching? Many users type "./unknownscript.pl" to see how they work.
Yikes, really? I would expect them to at least try "perldoc unknownscript.pl" first (which does not work for rebuildnonmarc.pl!). I admit that most of my scripts check for -h and that's the default action if no other makes sense, but generally, let Darwin have those people. ;-) -- MJR/slef My Opinion Only and possibly not of any group I know. Please http://remember.to/edit_messages on lists to be sure I read http://mjr.towers.org.uk/ gopher://g.towers.org.uk/ slef@jabber.at Creative copyleft computing services via http://www.ttllp.co.uk/
participants (3)
-
Kim Scannell -
MJ Ray -
paul POULAIN