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


ADVERTISEMENT

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

Programming :: Running Gcov When Executable Has Command Line Input Options

Mar 3, 2011

I have an executable with input options, like so:
Code:
./executable -n 42 -s 42
I've added gcov to the makefiles (compiling with --coverage, -fprofile-arcs, and -ftest-coverage, and linking with -lgcov). It builds fine and creates executable.gcno.

When I try to run gcov, gcov things the options belong to it:
Code:
$ gcov ./executable -n 42 -s 42
gcov: invalid option -- 's'
Usage: gcov [OPTION]... SOURCEFILE...
When I use quotes this happens:

Code:
$ gcov './executable -n 42 -s 42'
executable -n 42 -s 42.gcno:cannot open graph file

The command line options must remain. How can I get gcov to generate the same .gcno file it later looks for?

View 2 Replies View Related

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 View Related

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

OpenSUSE :: Running DOS / Windows Executable Files

Apr 5, 2011

I need to instal JDownloader, I downloaded as a linux version and this is the command line output (Archive Manager):

Archive: /root/Downloads/JDownloader/JDownloader.exe
[/root/Downloads/JDownloader/JDownloader.exe]
End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive.
zipinfo: cannot find zipfile directory in one of /root/Downloads/JDownloader/JDownloader.exe or
/root/Downloads/JDownloader/JDownloader.exe.zip, and cannot find
/root/Downloads/JDownloader/JDownloader.exe.ZIP, period.

View 9 Replies View Related

Red Hat / Fedora :: Executable Files Not Running From Home Folder

Mar 17, 2011

I cannot run executable files from my home folder. I just double click it and it doesn't do anything.

View 1 Replies View Related

General :: Running Executable In Bash Script

Mar 27, 2011

I've been trying to write a bash script called runSorter.sh that runs an executable that also takes in some parameters and outputs the results to a text file. The executable, sorter, takes in a number parameter. I want to make it so that you can input as many number parameters into runSorter.sh as you want and it will run the sorter executable for each one. So far, what I have looks like this:

#!/bin/bash
args=("$@")
INDEX=0
if [ -z args ]; then
echo "Error"
else
while [ $# -gt $INDEX ]; do
NUM=${args[$INDEX]}
echo $NUM
echo ./sorter $NUM
let INDEX=INDEX+1
done
fi

My problem is that when I run ./run-sorter.sh 100 on my terminal, it just prints this to the screen:
./sorter 100
How can I have so that it properly executes sorter and outputs everything to a text file?

View 4 Replies View Related

General :: Running Executable From Initramfs - Kernel Panic

Dec 2, 2010

I need to run an executable from initramfs which after executing should restart the system. How is it possible?.I tried using exec within the init of initramfs but it shows kernel panic (I guess exec after executing the binary it tries to exit and exiting with pid 1 is giving the panic).

View 2 Replies View Related

General :: How To Run Executable Files

Oct 20, 2010

I have a Nvidia driver that i need to run from the console.How do i do it and how do i find the file (to run it) from the console

View 14 Replies View Related

General :: Loop Append Text To Text Files?

Jan 15, 2010

may be an advanced question but I need to know how to do this. Here at work I am in charge of recruiting and we have about 1,000 resumes in already. All of the resumes are in a .pdf format. I need to rename every .pdf in the following format:{firstnameLastname}.pdfThe only way I know how to do this is to convert all the .pdf files to text, extract the name out of the first few lines of text, import into excel, and then use VBA to rename the files in mass:Here is my logic so far:~Deskop/a = houses all the .pdfresumesOpen terminal: Code: cd ~/Desktop/afor f in *.pdf; do pdftotext -raw $f; done That will convert all of the preceding resumes into text filesNow I would like to append the name of the text file into the last line of the text file. So, for example, for Resume1.txt, I want to append "Resume1.txt" to the last line within Resume1.txt. So after I run the command I open Resume1.txt and on the last line within I want to see "Resume1.txt" on the last line, at the end of the resume.How can I do this? I would like to use a loop and have the terminal append the filename to the body of the text file until all of the have been appended.

View 1 Replies View Related

General :: Search Text In All Text Files Of All The Sub-directories?

Apr 21, 2010

Currently, when I'm searching text in files of my PHP project, I use this line :

Code:

grep -r 'myTextToFind' *

But now, I would like to search only in ".lang" files. How can I do that ?

View 7 Replies View Related

General :: How To Only Copy Executable Files (or Without Extension)

May 9, 2011

Suppose there is a directory named mydir containing ...
aaa.cpp
aaa.h
bbb.cpp
bbb.h
Makefile
a
b
Where a,b are executable files. What I want to is to only copy a and b to another location. Is it possible? (other than by manually issuing copy a,b another_dir).

View 2 Replies View Related

General :: Open Executable Files On Ununtu?

Jan 26, 2011

best program to open .exe files on Ubunut!

View 2 Replies View Related

General :: Wine Installation To Run Executable Files?

May 11, 2011

I recently got the information that Windows software do not run in Linux as such. In order to run these software (Running the software also includes installing the software by running the set-up executable file) I need to install 'wine' on my system and then run the set-up files from within this 'wine'. I therefore wish to install 'wine' on my system in order to run the corresponding Windows set-up files (which are executable files). I am running Linux Mint version 10 on my system.

View 2 Replies View Related

General :: Delete Protected Windows Executable Files Via System?

Oct 26, 2009

I use Ubuntu 9.04 exclusively on my own machines, but I have a couple of flash drives that got infected by some corrupt windows executable (*.exe) files, probably by somebody's trojan (they are Cruzer 4GB so came with installed fancy programs that I dont need but didnt remove and Windows keeps installing unwanted ini files and other trash every time I use them in somebody elses machine or in an internet cafe). I deleted quite a few files, but some are stubborn.
$ sudo chmod +w-X doesnt seem to work. How do I unprotect and remove them? The filesystem is vFAT.

I suspect the files were created by some kind of a trojan as my work requires my flash to be pretty promiscuous.
When I 've backed up all the good files I need, I'd be happy to reformat the flash drives as straight vanilla data storage and retrieval, provided I can still use them on a variety of machines running MS windows as well as on my Linux machines. Any guidance on reformatting?

View 2 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

General :: Fatal: Bad Magic Number In Executable `prime' (not An Executable?)

Sep 3, 2010

I am trying to run Wattch simulator in linux.But it is giving the error below. what is this error and what do I do about it?

fatal: bad magic number in executable `prime' (not an executable?)

View 1 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

General :: Make All Files Non-executable Recursively Using Find Without Affecting Directories?

Sep 26, 2010

I need to strip the executable flag from all files within a certain directory and sub directories. Right now I'm doing it with a 2 step process

find /dir/ -type f -exec chmod ugo-x {} ;
find /dir/ -type d -exec chmod ugo+rx {} ;

Is it possible to modify the first line so that I can strip exec flag from all non-directory files? Since this needs to be done on a fairly regular basis across a lot of directories and files, I'd prefer not to use a bash script which would slow it down.

View 1 Replies View Related

General :: Debian TEXT Only Running Hot?

Feb 8, 2010

I recently found a laptop that had a broken / failing graphics card so i installed debian and did not opt to install the desktop environment. This system runs on my network and i connect to it through putty.

My main issue is its running hot, i touch the bottom of the laptop and its hot. This computer isn't doing anything, its running in text mode (and the lid is closed so the screen is not on) why is it so hot.

Are there any configuration changes i can make to reduce the heat? I tried to look myself online but could not find much. Is there a way i could config it so it would go into like sleep mode after x min and wake on a lan request?

View 1 Replies View Related

General :: Convert Open Office (odt) Files To Text Files?

May 25, 2011

How do you convert Open Office (ODT) documents to Text files?
I have made a report using libre office. Now I wish to continue editing the document using lyx (latex front end). So the ODT file needs to be saved as some .tex file.

I don't see an option to do this in File menu (export/save as). So is there any other plugin to do this?

View 1 Replies View Related

Ubuntu :: TCSH - Running Executable After Compilation

Jun 12, 2010

I'm new with linux, and I'm wondering why in order to run executable after compilation I have to type
>"./executableName" I want it to type it just like
>"executableName" (with no "./")
I don't know if this matters but I'm using tcsh for my shell...

View 6 Replies View Related

Ubuntu :: Text Editor With End-of-line Options

Jan 10, 2010

I'm an Ubuntu newbie and I'm looking for a text editor that has options for DOS-like or Unix-like end of line characters. I'm used to working with Notepad++ for windows that has an option for Unix/Mac/DOS end-of-line characters.It would be great if I could find a text editor for Ubuntu that has this built in or as a plugin instead of running the file through a converter.

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 :: How To Stop Files Moved - From Windows Via USB Being Marked "executable"?

Sep 27, 2010

When I move files from Windows to Linux using a USB drive, all files are marked as executable. Then double clicking on a ".txt" file gets you the ridiculous dialog box asking whether you want to display the file or execute it. (NOTE: The /etc/fstab entry for the USB mount includes the "noexec" option already and it hasn't helped.) Now that my wife and daughters are moving files back and forth between the two OSs, I'm getting pestered for a solution to this and I haven't been able to track anything down. Yet.

What can one do -- presumably on the Windows side of the transfer -- to prevent these files from being marked executable? Or is it a hopeless problem caused by some dainbread decision made by a Windows developer?

View 4 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

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

OpenSUSE :: Can't Run Executable Files?

Mar 29, 2011

I've always been able to run my shell scripts and other executable files using dot slash, ie: ./runfile.shAfter doing a fresh 11.4 install, I cannot run my scripts. Even if I 'source' the file, it won't run. Why?This is an example of the files that will no longer run. Permissions look normal to me, but there is an * at the end of the filename. I think that just means it's executable, but I've never seen it on my systems before.

Code:
-rwxrwxr-- 1 udaman users 25989559 Feb 4 2010 GoogleEarthLinux.bin*
-rwxrwxr-- 1 udaman users 42905128 Aug 28 2010 NVIDIA-Linux-x86_64-256.53.run*

[code]...

View 9 Replies View Related







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