Click to See Complete Forum and Search --> : running scripts?


chenliway
02-24-2001, 12:17 AM
ok ive got licq all set up, and i want to run the script at licq.org for converting windows icq databases. ok so first: im guessing this is a script... it looks like perl (im JUST getting into programming and only using c++ so im not sure). so, do i copy and paste this into a file, and save it as a *.pl? cuz that's what perl files are called no? and then how do i run it?
oh and one thing, in windows i use icq2000b and it says that this converter works for 99b-2000a, so anyone know if it'll work for 2000b?

ps: i may be totally, totally wrong, so tell me =P

[ 23 February 2001: Message edited by: chenliway ]

trekker
02-24-2001, 06:07 AM
If it's a perl file and you have perl installed on your system, just type "perl filename" at a terminal.

mrBen
02-24-2001, 06:23 AM
If it's a Perl script, then it should start with a line something like #!/bin/perl which tells bash that it's Perl. To run such a script you should just need to type it's full path name, and bash will run it. ie. to run myscript.pl just go to the directory and type ./myscript

HTH

(BTW, make sure that you have Perl installed - check out /bin, that's where it normally lives - and that you have permission for the script file)

chenliway
02-24-2001, 09:27 PM
cool thanks lots

bdg1983
02-24-2001, 11:13 PM
dont forget to chmod it to 755

chmod 755 scriptname.pl
then run it

oh and by the way, assuming you got the same onas me, it does work for 2000b

dood, you knew all the answers to what you were asking you just hadnt tried them. why dont you try what you think might work first then if you still have problems then ask a question about it