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

Ubuntu :: Tweaking Executable Text Files

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

General :: Options For Running Executable Text Files

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

Ubuntu :: Running Executable Text Files And Permissions And File Types

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

Ubuntu :: Remove Warning When Opening Text Files?

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

Ubuntu :: Line Breaks When Opening Text Files In Windows?

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

Ubuntu Installation :: Localhost Not Opening Php Files Text Editor?

Jun 17, 2011

localhost not opening php files text editor

View 1 Replies View Related

General :: Opening Files In Text Editor From The Terminal

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

Ubuntu :: Opening Executable From Nautilus

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

Ubuntu :: Executable Text File Prompt?

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

Ubuntu :: Text File Become Executable Once Created?

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

Software :: Join 2 Text Files Based On First Number Present In Every Line Of The 2 Text Files?

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

Ubuntu :: GTK Warning When Opening Text File Via SSH

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

Ubuntu :: Disable The Screen Programs Opening Text In 11.04?

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

Ubuntu :: Can't Text When The Menus Come Up Or When Opening A File From The Cd Or Curraculum On Line?

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

Ubuntu :: Text File Snot Opening Automatically With Gedit?

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

Ubuntu :: How To Open Executable Files Not .exe Files

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

General :: Opening Text File After Doing /dev/null

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

Programming :: Opening A Text File From Glade Interface?

Jan 26, 2011

opening a text file from glade interface.how?using c code

View 1 Replies View Related

Programming :: Opening A Text File With C++ Or Visual Basic?

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

General :: Bash Shell Syntax For Opening A Text Editor?

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

Software :: Use Sed To Include A Text File In The Beginning Of Other Text Files Inside A Folder And Its Subfolders?

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

Ubuntu :: Cant Make Files Executable?

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

CentOS 5 :: Text User Interface To Configure Text Files

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

Ubuntu :: Make Executable .sh Files Run Automatically?

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

Ubuntu :: Default Editor For Executable Files?

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

Ubuntu :: How To Make Script Files Executable

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

Ubuntu :: 10.10 - Making Blocked Files Executable?

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

Ubuntu :: Creating Executable Files With Bash?

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

Ubuntu :: Cannot Mark Files As Executable - No Option?

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







Copyrights 2005-15 www.BigResource.com, All rights reserved