LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-07-2007, 07:32 PM   #1
izquierdista
Member
 
Registered: Mar 2005
Distribution: Ubuntu
Posts: 342

Rep: Reputation: 30
how do I run a perl script in linux


Ok here is my situation,
I found this application/program that I need. the program is a perlscript. Based on the info posted on the persons blog you need ActivePerl to run it. I installed activePerl in Ubuntu but dont know where it installed or how to access it.

Well anyways how do I go about running this perl script?? I have no Idea how to do it.

thanks,
 
Old 07-07-2007, 07:39 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
You should simply have to make the script executable (if it is not already) with "chmod +x ./filename, and then run it.

If that doesn't work (if the script does not correctly name the interpreter) then you can try prefixing the script with the actual perl executable, like: "perl ./filename".
 
Old 07-07-2007, 07:44 PM   #3
izquierdista
Member
 
Registered: Mar 2005
Distribution: Ubuntu
Posts: 342

Original Poster
Rep: Reputation: 30
Ok this is what I got whenever I did what you told me:

Code:
chacmool@link:~$ cd /home/chacmool/DigiMemo
chacmool@link:~/DigiMemo$ chmod +x ./DigiMemo_SVG.pl
chacmool@link:~/DigiMemo$ perl ./DigiMemo_SVG.pl
usage: DigiSVG.pl <dhw-file>chacmool@link:~/DigiMemo$
does this mean the program is running now??
 
Old 07-07-2007, 07:47 PM   #4
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Yes the program is working. It is saying you need to give it some information before it can do anything though, I don't know what a "dhw-file" is though, as I am not familiar with this script.
 
Old 07-07-2007, 07:53 PM   #5
izquierdista
Member
 
Registered: Mar 2005
Distribution: Ubuntu
Posts: 342

Original Poster
Rep: Reputation: 30
Ok great this is pretty much what it boils down to:

The .DHW is an extension that is used by ACECAD digimemo digital notepad to store its information. pretty much it is an image file

this perl script file is suppossed to allow me to convert that file to .svg so that I can see my notes and not have to rely on the Windows program to do the conversion for me.

You can download the script and a file that includes a sample .dhw page and a conversion of it into a .svg file at this url:

http://www.kevlindev.com/blog/images...o/DigiMemo.zip

this folder also includes a word document that explains to you what the .DHW format is.

In essence this script converts the .DHW format into .svg

I hope this helps, Maybe you can help me figure out how to use the program once you download the file.
 
Old 07-07-2007, 11:37 PM   #6
izquierdista
Member
 
Registered: Mar 2005
Distribution: Ubuntu
Posts: 342

Original Poster
Rep: Reputation: 30
Ok, I emailed the creator of the program and this is the code that he told me:

"I haven't tested the script on Linux, but it should work. You may have to
change line endings of the script itself. If it doesn't work the first time
you run it, I would suspect that to be the issue.

To run simply type: ./DigiMemo_SVG.pl <dhw-file> > <svg-file>
Where <dhw-file> is the name of the file you want to convert and <svg-file>
is the name of the file you want to create."


Keeping this format in mind can you tell me how I would type

convert the file: PAGE_002.DHW to svg format?
 
Old 07-07-2007, 11:54 PM   #7
izquierdista
Member
 
Registered: Mar 2005
Distribution: Ubuntu
Posts: 342

Original Poster
Rep: Reputation: 30
Cool

I DID IT, I MADE IT WORK!!!!!!!!!!

After toying around with the code here is what I had to do:

Code:
chacmool@link:~$ cd /home/chacmool/DigiMemo/
chacmool@link:~/DigiMemo$ perl ./DigiMemo_SVG.pl PAGE_002.DHW > svg-PAGE_002.SVG
chacmool@link:~/DigiMemo$
Wohoo, now I can use my digimemo with Ubuntu linux, Man am I so happy, it took me all evening but I did it!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to run a shell script in the perl script sharad Linux - General 1 05-24-2006 04:23 AM
unable to run perl script using browser madhuri Debian 3 12-02-2005 05:46 PM
Converting a Windows Perl script to a Linux Perl script. rubbercash Programming 2 07-19-2004 11:22 AM
How to run a perl script as a daemon ? paonethestar Programming 17 11-06-2003 09:53 PM
can't get perl script to run from www victorus Linux - General 0 03-27-2001 06:32 PM


All times are GMT -5. The time now is 04:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration