General :: Executable File Using C - Colourful Line ?

Sep 23, 2009

I am creating a executable file using c in linux...I want to make the output lines colourful...

Example:

I want to make the "Hello" colourful...

View 1 Replies


ADVERTISEMENT

General :: Converting C Code Into Command Line Executable?

Sep 1, 2010

I thought this question's best category would be in the newbie sectionBasically I have a C code, (for simplicity is only prints a few lines), called printx.c that I would like to convert into a binary file so whenever I have to type "printx" in the command line it would execute the programofcourse gcc will give me a binary file if I do a "gcc printx.c", but even the output file (e.g. print.outwould have to be executed following manner./print.outI only ask, because I notice programs like mailx (which is written in C) is a binary file that could be run in this manner (at least that's what I notice on my ubuntu distro)

View 3 Replies View Related

Ubuntu :: Cannot Open An Executable File Because Of Executable Bit?

Jun 20, 2010

I am running into a snag on .exe files in Lucid. I have Wine installed, but I can not open the file as it is blocked from executing with a window popping up telling me that this file was blocked due to security reasons. I go into the files properties and try to change the permission but that does not help. Is there a way to get around this? Possibly in the terminal as root?

View 3 Replies View Related

General :: Executable File Contains The Precise Path To SO File?

Aug 13, 2010

Does executable file contains the precise path to SO file? Should it be compiled with precise knowing of SO file location?

View 8 Replies View Related

General :: How To Use A Executable File

Oct 21, 2009

some of the programs that i downloaded are launched with a linux executible file and i don't know how to make it work, how do i execute it double clicking doesn't help it just asks me which program i would like toopen the file with

View 5 Replies View Related

General :: Using Variable To Run An Executable File?

May 27, 2010

I have an executanle file in a directory (say /home/mahmood/test/do-sample) and in a bash file I want to run it:

Code:
#!/bin/bash
M_VARIABLE = $HOME/test

[code]...

View 3 Replies View Related

General :: Can Not Start An Executable File?

Aug 5, 2009

I have an executable file called jboss in the current directory:-rwxr-xr-x 1 test jboss 7151 Aug 5 11:04 jbossAn in the file jboss it looks as follow:

Code:
...
#---------------------------
# command handling

[code]...

View 3 Replies View Related

General :: Make A File Executable And Then Run?

Jan 24, 2010

I have created a file named as pm under the path /home/ppp/ i.e. /home/ppp/pmTo make it executable, I've used command: chmod a+x /home/ppp/pm while residing in root directory.But while trying to run from root by typing ./pm or within the directory /home/ppp, it was displaying that directory not found.Please help by providing the step by step procedure, so that I would be able to run my file from root or from the directory.

View 3 Replies View Related

General :: Changing The Name Of Executable File A.out?

Jan 18, 2011

Is there any way to change the name "a.out" of executable file to any other name of our choice..

View 5 Replies View Related

General :: Stop An Executable File?

Feb 23, 2011

i run this command on file : chmod u+x recon (recon is the name of the file). then i run the file in question (. recon). i just want to stop it; how to do this ?

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

General :: Chmod Make Any File Executable?

Feb 23, 2011

can chmod make any file executable?

View 4 Replies View Related

General :: Make A File A Executable Program ?

Dec 21, 2009

How Do I make a file a executable program ?

View 3 Replies View Related

General :: Run An Executable File (.exe) From Matlab In A Enviroment?

Jun 22, 2011

I have a computer with Windows and I am running a Matlab program remotely in a Linux server. That (matlab) program will use an executable file (.exe) to analize some data; and that data will be used as input to a program that I can only run in the linux server.I need to run an executable file (.exe) from matlab in a linux enviroment. Is this possible?

View 13 Replies View Related

General :: Change Image Of An Executable File From Commandline.

Feb 15, 2011

I want to change the icon image of the executable files from command line.

View 3 Replies View Related

General :: Compress The Size Of ARM9 Executable File

Apr 28, 2011

i am using classpath-0.98,jamvm-1.5.4 and arm9 cortex processor. so my question is after install classpath and jamvm on arm9 , i am getting around 30MB FAT file. so tell me some tips how to reduce the size of FAT file as much as possible.

View 1 Replies View Related

General :: Write A Command To Set The /bin/tetris File Executable

Feb 12, 2011

How do you write a command to set the /bin/tetris file executable

View 2 Replies View Related

General :: Scripting - Feed An Input File Into An If Statement Line-by-line

Dec 23, 2009

I am trying to write a script that takes an input file ($FileName) and an intermediate file ($FileName.info) and removes lines from $FileName if the value in $2 of $FileName.info is <75.

I can't figure out how to feed only one line of the .info file to the if statement at a time so that it will perceive it as an integer instead of a list.

The error I am getting now is ./script.sh: line 6: [: : integer expression expected

Sample input $FileName

Code:

Code:

Code:

Script so far:

Code:

View 10 Replies View Related

General :: Parse A File And Print Each Line That Ends With Matching Pattern (if The Next Line Is Blank)

Aug 2, 2010

I've written a script to parse a file and print each line that ends with matching pattern, if the next line is blank. The pattern lines are the result of md5sum $i|sed 's/path///g' so that only md5 and filename appear. Here's what I'm using.

Quote:
for fline in `sed -n '/.*.ext$/p' file1`
do
if [ "`sed -n -e '/'"$fline"'/ {n; p;}' file1`" == "" ]
then
echo ""$fline" has no info" >>file2
fi
done
[Code]....

View 4 Replies View Related

General :: Command Line Way To View A Line Of A File With Context?

Feb 24, 2011

I'd like show a certain line or lines of a file with context, kind of like a unified diff, on the command line in Linux:

$ (something) -l 154 stuff.py
150: def foo(bar):
151: """

[code]....

View 5 Replies View Related

General :: Appending To The Current Line In A File Instead Of Creating A New Line?

Apr 1, 2011

I am combining data from a couple different input files and creating an output file in a specific format. I notice that if I use the >> operator, information gets appended to a new line in my output file. This is useful, but if I'd like to append onto the CURRENT line, is there an easy way to do this? I've been googling around and see lots of complicated answers, nothing that suggests to me an easy way to do this. For example, if my output file looks like this:

b1a:] cat test
hello my name is
b1a:]

and I'd simply like to append "Bob", how can I do it? If I use

b1a:] echo Bob >> test
b1a:] cat test
b1a:] hello my name is
Bob
b1a:]

So what I would prefer is some command that would create the result:

hello my name is Bob

View 14 Replies View Related

General :: File - Extract Executable / Script From Memory In (Ubuntu)

May 11, 2011

when I delete a running executable or script, it usually (for me, pretty much always, but I don't know if it will work in every case) continues to run without any problems. So I've got two questions here: Where is the running executable/script being run from? RAM memory? If stored in RAM or where ever, is there a way to extract the executable/script from that location? If it makes any difference, I'm using Ubuntu 11.04.

View 1 Replies View Related

General :: Creating Desktop Shortcuts - Executable File For XMMS

Dec 19, 2009

I just installed XMMS and I want to create a shortcut on the desktop to run it. I found a how-to video for creating shortcuts so I have the gist of it (I was able to create one for Firefox) but I don't know where to find the executable file for XMMS to do the same. I just don't know enough about Linux's file structure to know where to look.

View 2 Replies View Related

General :: Run An Executable File ( Created From Qt) Post Installation (redhat)?

Feb 24, 2011

I want to run an executable file during or post linux installation which take input from user and closes on click of "ok" button. The thing i want to accomplish is something like the screen that turn up during the installation, like setting time or selecting some packages and then pressing next button...i want to do a similar stuff like the above said using my applicatio

View 2 Replies View Related

General :: Executable File Apparently Doesn't Exist When Trying To Execute With Bash

May 9, 2011

I downloaded a program called tonespace http://www.mucoder.net/en/tonespace/ which I extracted and then tried to execute the executable file with ./tonespace. This gives me the following message:

bash: ./tonespace: No such file or directory

When I use the command: file ./tonespace I get this: tonespace: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped

I dont get it. The file is clearly there, yet when trying to execute it bash doesn't seem to recognize it.

It has permissions rwxr-xr-x and is not owned by root. Am I overlooking something?

View 2 Replies View Related

General :: Unable To Install Crclient Which Is An Executable File For System / Sort It?

May 2, 2010

I'm new to Linux world. I'm using Ubuntu 9.04. I'm unable to go online using Ubuntu because I'm unable to run an executable client application provided by my ISP. I called them and they are not able to help me instlling this client applicatoin for me on my Ubuntu. "I cannot go online untill I install this ISP client application on my Ubuntu." I'm entering my ISPs weblink in this blogpost so that it would be easy for you guys to help me resolving this issue. http://www.spacenetindia.net/download.php This is the weblink where I downloaded that ISP client application from. I clicked on this link and clicked on 24online clients.exe tab located on the left and downloaded linuxclient.gz. Please help me if you find any resolution for this issue. Though I tried downloading Wine but I could not as I cannot go onlnie in Ubuntu. In windows I don't know how to install wine to make it work offline in ubuntu.b

View 14 Replies View Related

Ubuntu :: Subpixel Smoothing Causes Text To Be Colourful?

Jun 9, 2010

I just bought a new monitor, Acer H243HX 24" 1920x1080. I have Ubuntu 10.04 and subpixel smoothing enabled with slight hinting and RGB-order (monitor has same RGB-order). The problem is that fonts seems to have "too heavy" smoothing: fonts doesn't look black but colourful. Text has almost unnoticeable but very irritating colour glow. I have tried grayscale smoothing but with it fonts don't look as nice as with subpixel smoothing.

I have been wondering whether problem is associated with software or hardware. Could problem be caused by the fairly large pixel pitch (pixel size) of my monitor (0.276 mm)? I have used two other monitors with Ubuntu 10.04 and same smoothing settings. They had pixel pitch of 0.26 mm. I haven't noticed any colour glow in these monitors even though I have tried to see it.

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

Programming :: Access A File Line By Line, And Check The Length Of Each Line.

Feb 13, 2011

I want to access a file, and check the length of every line.After, i want to check and replace all lines with length over 10 characters, with a message.Does anyone have a clue on that?

View 1 Replies View Related

Ubuntu :: Install The Download File Which Is A Windows Xp Dos Executable File Of 8mbs

Sep 19, 2010

I have NDISWRAPPER installed on my laptop, but when I try to install the download file which is a Windows Xp dos executable file of 8mbs I have tried every thing but without success I can see my Iomega 250 Zip drive when I go into system>administration>disk utilities and acess properties but cannot make it run,

Dell inspiron 6400
OS: Ubuntu 10.04LTS
Ram:2gb
HDD: 250gb
Tony044

View 1 Replies View Related







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