LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-23-2014, 10:04 AM   #1
hibaa
LQ Newbie
 
Registered: Feb 2014
Posts: 25

Rep: Reputation: Disabled
gedit with ns2


hi
installed ns2.29 , cygwin on windows XP
i want to edit files ,so i installed gedit
and i use it to edit files and save them but i cant use it inside the ns2 .
for example :
$ gedit simple.tcl
bash: gedit: command not found
why ?
when i open simple.tcl out of ns2 it work ok
 
Old 02-23-2014, 06:38 PM   #2
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
It looks like gedit isn't in a directory in the path. Bash gives that error message when it can't find the command, and it only looks in the path, and not in the current directory. You could change the path or move the gedit binary, whichever you prefer, or you can simply give the full path to it on the command line when you invoke it, like
Code:
/path/to/binary/gedit simple.tcl
If that doesn't work, you have something more serious wrong, such as gedit not being actually installed, or something borked in your system.
 
1 members found this post helpful.
Old 02-24-2014, 08:54 AM   #3
hibaa
LQ Newbie
 
Registered: Feb 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
sorry but i don't understand how to change the path of program ???
 
Old 02-25-2014, 07:37 PM   #4
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
I mean change the system path, the directories the system looks in to find executables. Windows also uses system path, but implements it slightly differently. You really need to do some serious googling.
 
  


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
Differences between LEACH results on ns2.1b5 and ns2.35 deepa_2111 Linux - Software 15 05-16-2013 06:53 PM
NS2: Require eap-sim authentication code for simulation in ns2.24 noamankhatib Linux - Software 0 04-29-2013 01:03 PM
Gnome 3, Gedit 3.0.5, when I open file with gedit, it created one more unneeded tab Mr. Alex Linux - Software 1 06-18-2011 08:58 AM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 02:44 AM

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

All times are GMT -5. The time now is 01:02 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