Ubuntu :: Opening Executable As Text Files?
Oct 29, 2010
So I have Python file :
Code:
#!/usr/bin/env python
print 'python'
raw_input('')
And another :
[Code]....
as it should. I don't want to take such a hassle always running python by path.
View 4 Replies
ADVERTISEMENT
Mar 3, 2011
is there a way to directly open the executable text files in ubuntu without that annoying msgbox asking us to display or run in terminal mode...
View 1 Replies
View Related
Aug 4, 2010
I have created some text executable files and put them on my desktop. In the way of background I created them in gedit. Then used chmod ugo+x (filename) to make them executable. One of them is a ping test to see if a printer is on. Text in file = ping 192.168.1.5. Others are to turn my laptop touchpad on and off. text in file = sudo modprobe -i psmouse.
I have 2 questions about executable text files:
- When I click on an executable text file it present a window with 4 options (Run in terminal, display, cancel, run). Can I set a parameter or do something else so it just runs in terminal? I know I can set an option in Nautilus to run them but when I select run nothing seems to happen. In addition I would want to set this option on a case by case basis not globally in Nautilus. If there is an option or flag where it would run this file in terminal I would use it on my printer ping test.
- When I click on these executable text files to turn my touchpad on and off, the text within the file uses the sudo command so that requires that I input my password. After I click on either of these files a window appears with the 4 options (Run in terminal, display, cancel, run). I select run in terminal, a terminal window opens and requests my password. Subsequent to inputting my password the file executes fine.
Is there a way to set a parameter or do something else so I don't need to not only select the run in terminal option from (run in terminal, display, cancel, run) but also not to enter my password?
View 4 Replies
View Related
Nov 10, 2010
I checked the 'Run executable text files when they are opened' option in Nautilus preferences. I have noticed that files such as .sh and .bin launch by simply clicking on then (which is great). However I have also noticed that an ordinary .txt and .html file must not be marked as executable in order to launch it in Gedit and Firefox respectively via clicking. Otherwise you must right click and open with every time. What file types need to have execute permissions? What file types never need to have execute permissions?
View 2 Replies
View Related
Jun 20, 2010
I really hate this warning when I try to open certain types of files in gedit: (using ubuntu lucid)
Quote:
Do you want to run File.c or display its contents?
"File.c" is an executable text file.
Open in Terminal; Display; Cancel; Run
Is there any way to remove the warning? I have never once clicked anything other than display, and when I'm opening lots of files, having to hold down ALT-D to get rid of these warnings.
View 6 Replies
View Related
Mar 26, 2010
I have some text files (Just plain text files, not OpenOffice files or anything) and when I try to open them in Windows they are all one line. I think I read somewhere that Linux uses for new lines whereas Windows uses or something... I am using Kate to edit them, and I have a LOT of files to fix so...
View 9 Replies
View Related
Jun 17, 2011
localhost not opening php files text editor
View 1 Replies
View Related
Mar 7, 2010
Using ubuntu 9.10
If I'm in a terminal window, and I open a file by typing eg :
It opens as a blank document... I know it has text in it though!
I've tried with other files and also with nano so it's not just a problem with a particular file.
How do I view the current contents of the file so I can then edit it?
View 4 Replies
View Related
Aug 2, 2010
I'm trying to open an executable called qview (a GUI program) from Nautilus. The overall goal is to open a certain file type with it. If I run from terminal, there's no problem, but when I click on it from Nautilus, it doesn't seem to do anything. I changed the ownership to me, to make sure the permissions were set properly.
View 3 Replies
View Related
Jan 20, 2010
I created a bash script to help me mount my network shares.However when I link the file to the desktop and dbl click on the link it asks me if I want toCode:RUN IN TERMINAL - DISPLAY - CANCEL - RUNHow can I get it to RUN IN TERMINAL each time I dbl click it?
View 5 Replies
View Related
Jun 3, 2010
when I create a new text file in my pendrive, it become executable automatically. The text file name append with asterisk(*). However when I create a text file in Desktop, the created text file is normal and is not executable.
Another thing is when I copy a PDF file to my pendrive, it become executable file with asterisk (*) append after the PDF name. I've try copy whatever to pendrive but all end up with executable file.
View 6 Replies
View Related
Jan 22, 2010
I have 2 text files : file1.txt and file2.txt
cat file1.txt
15 this is a sentence containing various words and spaces
34 this is a another sentence containing various words and spaces
cat file2.txt
2 this is sentence1file2
6 this is sentence2file2
54 this is sentence3file2
I would like to join these 2 files. The result should look as follows :
cat joinedfile.txt
2 this is sentence1file2
6 this is sentence2file2
15 this is a sentence containing various words and spaces
34 this is a another sentence containing various words and spaces
54 this is sentence3file2
==> so the joined file must be sorted on the first number. Any ideas how this can be achieved ?
View 4 Replies
View Related
Dec 18, 2010
What does this message mean:
'(gedit:14074): Gtk-WARNING **: cannot open display:'
I'm trying to open a text file from another computer via ssh. Is it a permission problem.
View 2 Replies
View Related
May 31, 2011
Well title say it all how do you disable the screen programs opening text in 11.04 so you do not have to hit the enter key twice to get by the two pages of text to actually be running the program you started.
View 1 Replies
View Related
Feb 3, 2010
The problem that I am having now is that I can not is the text when the menus come up or when opening a file from the cd or curraculum on line. I have cairo-dock running and a conky running. Could this be the couse of my problem? I was going to uninstall and reinstall packet tracer but I am unsure on how to uninstall.
View 1 Replies
View Related
Apr 16, 2011
I have text files (.txt) to open with gedit but every time I try to open a text file it says:
Code:
Do you want to run "Installed programs", or display its contents?
And if I press Display it will open. How do I make it open automatically?
View 3 Replies
View Related
Jun 27, 2010
I just installed the nmap for port scanning and then run ./configure , make , make install command respectively. It works and then I successfully installed nmap under /usr/local/bin . nmap is a executable file not .exe . so my question is how can I open it .
View 8 Replies
View Related
Dec 8, 2010
I ran a program that writes continuously from 1 every line. After some time I ran '/dev/null > temp' Problem1: bash: /dev/null: Permission denied (Yes, the permissions of /dev/null are correct ... crw-rw-rw-. I removed and created it again, but no change) I used 'cat temp' to see the contents and first few lines deleted (working correctly). Problem2: I can't open the file (with double click or with any graphical editor like gedit)
Apart from these problems, I have another question... Is there a way to trim a active log file to say 80% without affecting any logs that server might be writing.
View 3 Replies
View Related
Jan 26, 2011
opening a text file from glade interface.how?using c code
View 1 Replies
View Related
Apr 29, 2010
I am a beginner at programming and have been given an assignment by my professor. Its a text file with lines of varying lengths. All I have to do is write a code to open the file and see the output in an excel sheet. Have been asked to use C/C++ or visual basic
View 5 Replies
View Related
Apr 28, 2011
I'm trying to be able to Open a text editor without needing an existing file.This is my code:
case $ans in
"Show Today") echo "$(date)";;
"Show Calendar") cal;;
[code]...
View 14 Replies
View Related
Jun 1, 2010
Can I use sed to include a text file in the beginning of other text files inside a folder and its subfolders? So it should be recursive.
View 4 Replies
View Related
May 28, 2011
I cant make files executable anymore.using chmod or from file properties.. it isn't working.
AS far as I remember, I didn't make any changes in the user settings and my account has the administrator rights. For an un-executable file, say a jpg or a txt, it can be done.but doesn't happen with a .sh, .py or any other xecutable. chmodi-ing shows no error, but the file isn't executable. Through the GUI, when I check the box , its immediately unchecked again.
View 2 Replies
View Related
Nov 5, 2009
I would like to write a text user interface (TUI) to adjust some text config files etc. Is there a tool or application for creating TUIs like this. I�m talking about those types of config tools which you see executed at first boot.
View 19 Replies
View Related
Feb 19, 2010
How do you make executable .sh files run automatically without prompting me on whether I want to Run in Terminal, Display, or Run?
View 1 Replies
View Related
Mar 21, 2010
The default editor for *.sh *.cpp etc has changed to emacs once after the installation of emacs. How can I changed back to gedit?
View 3 Replies
View Related
Jun 1, 2010
I would like to make lisp files executable. Ie. i can go like this on the command prompt
./hello.lisp
and it would invoke a .sh script on hello.lisp which would cause the file to execute.
View 5 Replies
View Related
Oct 14, 2010
I just upgraded to 10.10 (everything was working fine in 10.04). I have .jar files that in 10.04 would execute with OpenJDK. Now I get an error message, telling me that it is blocked:
"The file '[path]' is not marked as executable. If this was downloaded or copied from an untrusted source, it may be dangerous to run. For more details, read about the executable bit."
I try to set it as executable like it was before, and it's a no go. My checkmark takes then quickly disappears before my eyes.
View 5 Replies
View Related
Apr 20, 2011
you can make a file that runs the contents as if typed out by the user in command prompt by saving the file as either .bat or .cmd . When using BASH in ubuntu, is it possible to save terminal executable files (from a text editor, like GEDIT), What file ending does it take, can i lay it out with just commands? (what is the syntax)
View 3 Replies
View Related
Jul 23, 2011
In Xubuntu, I can't seem to mark files as executable. I go into the properties, but there is no option to do this. Is there a way to mark .exe and .jar files as executable in XFCE?
View 4 Replies
View Related