Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
java.io.IOException: Cannot run program "/home/priya/vanet-sec-ns/ns-allinone-2.35/ns-2.35": java.io.IOException: error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:494)
at java.lang.Runtime.exec(Runtime.java:612)
at java.lang.Runtime.exec(Runtime.java:450)
at java.lang.Runtime.exec(Runtime.java:347)
at ch.epfl.trans.util.CommandProcessor.executeCommand(CommandProcessor.java:59)
at ch.epfl.trans.util.CommandProcessor.executeCommand(CommandProcessor.java:44)
at ch.epfl.trans.TraNS.simulate(TraNS.java:532)
at ch.epfl.trans.TraNS.actionPerformed(TraNS.java:454)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6288)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6053)
at java.awt.Container.processEvent(Container.java:2045)
at java.awt.Component.dispatchEventImpl(Component.java:4649)
at java.awt.Container.dispatchEventImpl(Container.java:2103)
at java.awt.Component.dispatchEvent(Component.java:4475)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4297)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)
at java.awt.Container.dispatchEventImpl(Container.java:2089)
at java.awt.Window.dispatchEventImpl(Window.java:2588)
at java.awt.Component.dispatchEvent(Component.java:4475)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:680)
at java.awt.EventQueue.access$400(EventQueue.java:96)
at java.awt.EventQueue$2.run(EventQueue.java:639)
at java.awt.EventQueue$2.run(EventQueue.java:637)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:108)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:119)
at java.awt.EventQueue$3.run(EventQueue.java:653)
at java.awt.EventQueue$3.run(EventQueue.java:651)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:108)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:650)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Caused by: java.io.IOException: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
at java.lang.ProcessImpl.start(ProcessImpl.java:81)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:476)
... 44 more
Error executing /home/priya/vanet-sec-ns/ns-allinone-2.35/ns-2.35 ./files/simulation.tcl
Yes I gave the location where the ns executable file is there (i.e) /home/priya/vanet-sec-ns/ns-allinone-2.35/ns-2.35. This is the location where the ns executable file is there.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516
Rep:
Re #22.
If you insist in having no backup = /usr/local/bin/{ ns, ns235 },
you can of course use :
/home/priya/vanet-sec-ns/ns-allinone-2.35/ns-2.35/ns
I.e. you are asked to enter the ns binary to use.
/home/priya/vanet-sec-ns/ns-allinone-2.35/ns-2.35/ is not the executable ns !
So you will have to enter exactly <PATH-to>/ns
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516
Rep:
Re #24.
The normal way of handling ns2 is :
$ cd ns-allinone-2.35/ns-2.35/ && sudo make install
( 'make install' will copy the executable 'ns' to /usr/local/bin/
... I.e. a system PATH.)
$ cp ns ns235 ( This is your backup. Any naming can be used.)
$ sudo cp ns235 /usr/local/bin/
Also : No *PATH entries should be done to .bashrc. Not required.
Thanks for making me understand regarding the path.
I tried to use the vntest.tcl in TraNS and make an active feedback between sumo and ns2(vntest.tcl)
I got the following error
Process error while executing command:
INITIALIZE THE LIST xListHead
couldn't read file "scenario/urban-n100-t500.tcl": no such file or directory
while executing
"source.orig scenario/urban-n100-t500.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source $opt(sc)
What is this error due to??
Are there any other means for integrating sumo and ns2??
Thanks for taking time and replying me patiently
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516
Rep:
Re #26.
Quote:
couldn't read file "scenario/urban-n100-t500.tcl"
Wherever you want to run "vntest.tcl" as is,
there must also be a folder scenario/ with `urban-n100-t500.tcl'.
Please read vntest.tcl : There are other options.
Quote:
integrating sumo and ns2 ?
No integration.
Sumo can create files.tcl ? ( I don't remember.) Traffic files ? Scenario files ?
.. And the files can be used for an ns2 simulation.
E.g. edit vntest.tcl from scenario/urban-n100-t500.tcl to <sumo123scen>.
Can we use two protocols in the same tcl file. I tried to attach two agents Agent/VanetRBC and Agent/Security_Protocol to all the nodes in the tcl file. I am getting error called invalid Agent/Security_Protocol.
When i tried to use the two protocols in different tcl files it just works fine.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516
Rep:
Re #28.
Security :
There is only only one option to use : Agent/Security_packet
"Agent/Security_Protocol" is not a valid "packet".
The word "Protocol" is never used in simulation code I think.
* Please read 'security.tcl' and 'security_ns235.patch' (VanetRBC+Security_ns235.patch.gz).
Can we use two protocols in the same tcl file ? Don't know.
Please try that out for yourself.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.