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 11-30-2015, 05:33 PM   #1
marwa88
Member
 
Registered: Nov 2015
Posts: 56

Rep: Reputation: Disabled
Can't open perl script


Hi, i use ns2.31 and i installed the crcn patch.
i use the GUI.
i want to display the throughput but i have this error:


Quote:
ERROR>Can't open perl script "/root/ns-allinone-2.31/ns-2.31/throughput.pl": No such file or directory
Process exitValue: 2
But did not install ns2 in that path, i installed it in home/marwa/ns-allinone-2.31

Any help please.
Thank you.
 
Old 12-01-2015, 03:03 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
Simple but maybe not the best idea is to create a symlink to the root folder
sudo ln -s /home/marwa/ns-allinone-2.31 /root/ns-allinone-2.31
 
Old 12-01-2015, 09:41 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
@marwa88 :

You are supposed to set /home/marwa/ns-allinone-2.31/ns-2.31/<test.tcl> in "Open file from ...".
Just click the button "Open file from ...", and select.
Example : See the attached image.
-
Attached Thumbnails
Click image for larger version

Name:	screen760.jpg
Views:	113
Size:	9.4 KB
ID:	20193  

Last edited by knudfl; 12-03-2015 at 11:57 AM.
 
Old 12-03-2015, 10:08 AM   #4
marwa88
Member
 
Registered: Nov 2015
Posts: 56

Original Poster
Rep: Reputation: Disabled
Hi knudfl,

yes, this is what i did. When i want to try one of tcl files given by the patch, i skip the two parts used for the creation of the tcl file (phy setting and other simulation setting),and i write like in the attached image.

Click image for larger version

Name:	crcn.jpg
Views:	64
Size:	17.8 KB
ID:	20214

The interference image appears but the throughput give me the error that i wrote above.

have idea please?
 
Old 12-03-2015, 11:57 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,492

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
Re #4.

OK, then make a copy of the perl script to /home/marwa/ns-allinone-2.31/ns-2.31/throughput.pl,
or whatever path you have set.

I think we have three? different "throughput.pl" available.
Please try out all the "throughput.pl" :
{ throughput.pl, throughput-8.pl, throughput-9.pl, (thr-one.pl) }.
See awk#perl#python__scripts-10.2015.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing


-
 
Old 12-03-2015, 01:12 PM   #6
marwa88
Member
 
Registered: Nov 2015
Posts: 56

Original Poster
Rep: Reputation: Disabled
I tryed now to use other throughput but always the same problem.

What i notice is:
when i click interference or throughput in the end of the curve there are simulation settings.
Those setting dont change whatever the file that i use.
For example when i use 0-test4maccon.tcl file, simulation setting are AODV (routing rotocol) , maccon (mac protocol) and 3 channels. Whereas, in my case the setting that appear in the end of the image are always the same ( AODV, 802_11 and 1 channel).

please see attachement to understand me more(in this case i use 0-test4maccon.tcl).

Thank you.

Click image for larger version

Name:	throughput.jpg
Views:	71
Size:	52.1 KB
ID:	20218
 
Old 12-04-2015, 03:18 PM   #7
marwa88
Member
 
Registered: Nov 2015
Posts: 56

Original Poster
Rep: Reputation: Disabled
j-ray: Please did you tryed this solution in the case of CRCN?
 
  


Reply

Tags
crcn, ns2


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
perl script wont open the lib ! menylea Programming 3 02-05-2014 10:24 PM
[SOLVED] perl script tp open an xterm window and run a command. casperdaghost Linux - Newbie 2 07-25-2010 02:49 AM
Can we open a browser (firefox/IE) & enter URL in it via shell/PERL script. barde Linux - Newbie 6 02-18-2009 05:21 AM
You have chosen to open: installer.pl which is a perl Script? cucolin@ Linux - Server 3 03-27-2007 12:01 AM
Converting a Windows Perl script to a Linux Perl script. rubbercash Programming 2 07-19-2004 10:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:43 PM.

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
Open Source Consulting | Domain Registration