General :: Cant Run My C-code Files ?

Feb 25, 2010

This is not working for me, I cant run my c-code files.

This is how I do:

But I cant get it to run!

I have gcc installed. Whats wrong?

I only get, no such file or...

Do I have so save the file somewhere special?

View 1 Replies


ADVERTISEMENT

General :: Code For Renaming Files With Prefix In Subfolders?

Feb 12, 2011

I want to rename files in multiple subfolders with a prefix (e.g., rename "file.tif" with "prefix_file.tif") and not have to be in the subfolder.

code: for f in /path/to/*; do echo mv "$f" "PRE_$f"; done

gives you this: mv /path/to/file1 PRE_/path/to/file1

instead I want this: mv /path/to/file1 /path/to/PRE_file1

View 3 Replies View Related

Programming :: Adding Some Code To Like 50 PHP Files

Jan 15, 2010

I need to basically add some code to like 50 php files. It's basically a script that I want to add near the end of these 50 php files. I figured I could use sed to replace </body> with the code. However the code, is very long and has a bunch of newlines obviously. How would I be able to do this?
sed -e 's/<//body>/(all the text)/' *.php

Since it has newlines, I don't know how to paste it in cause it would take me to a '>' prompt without allowing me to complete the sed command. I want to insert this code.
Code:
<br><br>
<center>
<form action="test.php" method=post>
<textarea name="comments" cols=40 rows=6>

View 3 Replies View Related

Software :: Complete And Install Source Code Files?

Jan 27, 2011

I have no preior experience about to installation procedure in linux.currently i am using red hat linux which normally support rpm.I have to download a software from net which have extention like blablabla.tar.gz or blablabla.bz2.Normally most softwares can be complied in installed in three simple steps

./configure
Make command
Make install

I have not use these commands i just have a bit knowledge about it which i have mentioned here. how to extract sourse code fine and then compile and at last installed in the pc.

View 13 Replies View Related

Ubuntu Servers :: Testing Website - How To Hide PHP Code And Files

Mar 12, 2010

I have just set up my web server for the first time in Linux (used to be Windows 2003). I have a web site [URL], could someone with experience please check this web site to see if the PHP files are hidden (and therefor my PHP code can't be seen). If they can be seen then how do I hide the PHP files?

View 6 Replies View Related

Software :: Use Flv And Mp4 Files On Flavour Fedora But Could Not Find The Required Code Cs?

Feb 16, 2011

I want to use flv and mp4 files on Linux flavour fedora but i could not find the required code cs for that files.Plz help me to find these codecs'

View 3 Replies View Related

Programming :: Find Source Code Of C Library Files In Ubuntu?

Feb 26, 2009

Where do i found source code of c library files in ubuntu.

View 2 Replies View Related

Programming :: Source Code To Get The Location Of Installed Files After Rpm Installation

Jul 25, 2011

The rpm command to get all the list of all installed file location after rpm installation is rpm -ql <rpm file-name>

View 7 Replies View Related

Programming :: Bash-code To Rename Files Based On Config File

Apr 12, 2010

I'm writing a bash shell script that among various other things will traverse through a directory with hundreds of files and rename those who match a pattern found in a config file. It's expected that only about one in ten files will actually match, and those who don't, will simply just be ignored for this purpose.

This should for instance cause the file "dBase program file December 1987.prg" to be renamed "Clipper source code December 1987.prg", and conversely "C++ source August 1996.cpp" to be renamed "C source code August 1996.cpp" etc.A sample file such as "Random Data File.dat" should not be renamed here since it's not mentioned in the config file..What is the quickest, most elegant way to do this in bash?I am thinking of using bash's built-in regex matching combined with the /bin/rename utility, but don't quite know how to get started to catch this..I guess there are plenty ways of doing this in perl and elsewhere as well, but since this has to integrate into a pre-existing bash script, that's what I'm looking for.Anyone out there with a spare moment to offer a hint in the right direction?

View 14 Replies View Related

Software :: Reading And Writing SAC (Seismic Analysis Code) Data Files In Fortran Codes

Dec 2, 2008

I synthesized a seismogram by using Fortran codes, I need plot the synthesized seismogram and the data together, so I can verify the accuracy of code. Now I encounter a question: how to read the SAC data by Fortran code, I have searched some codes on Internet, the details as follow:the velr12a.sac is my data file.

Code:
c read sac file
PROGRAM RSAC
PARAMETER (MAX=1000)
DIMENSION YARRAY(MAX)
CHARACTER*10 KNAME

[Code]....

View 2 Replies View Related

Programming :: Selenium Java Code Into Equivalent Php Code?

Mar 30, 2011

I need to rewrite the selenium java code into its equivalent php code.

View 5 Replies View Related

Programming :: Bash Code To Prevent Redundantly Including Files, Like Php's "include_once"?

Jul 13, 2010

I wrote some bash code to prevent redundantly including files, like php's "include_once". I've simplified it here so don't worry that it appears not to do anything:

Code: alias .='Include'
alias source='Include'
export __INC__functions=1

[code]....

View 1 Replies View Related

Security :: Reset Facebook Password,facebook Send A Code To E-mail,this Code Can Be Sniffed By Sniff Software?

Jul 18, 2010

for reset Facebook password,facebook send a code to e-mail,this code can be sniffed by sniff software?

View 2 Replies View Related

General :: How To Edit ECC Code

Jun 21, 2010

can I change the ECC code for a block of a file stored on a flash drive by any means ? of a file stored on a HDD (though I don't think there would be a difference between the two)Maybe , through some hardware interrupts or anything like that?Also if possible I need the solution to be in C/C++.

View 3 Replies View Related

General :: Get Yum To Install 64 Bit Code?

Apr 5, 2010

Just installed Fedora 12 on a customers server which has a 64 bit CPU but the kernel installed is the 32 bit version.

How can i get yum to install the 64 bit code?

View 1 Replies View Related

General :: How OS Feed Machine Code To CPU

Jul 1, 2011

When we run an executable,the machine code is called one by one in the CPU,but how does the OS feed each instruction to CPU?

What's the internals?

View 4 Replies View Related

General :: Compile A Code From A Different Directory?

Jul 14, 2010

I do a lot of programming and I have to compile the code quite often. It's not convenient to move to the directory that contains the source code every time I want to compile it. So is there a way to compile a code from the my current directory (say /home example) without moving to the directory that contains the source. I remember being able to do this but forgotten how.

EDIT: I'm using makefiles to compile. Lets say I'm in the home directory and when I type

make -f /code/make_file

this doesn't seem to work

View 4 Replies View Related

General :: Display An Image Using C Code?

Jan 18, 2010

i want to display an image using c program on linux how it is done?

View 1 Replies View Related

General :: Need Source Code For Gprof

Jan 17, 2010

I need GNU gprof source code. I have searched on Internet but didn't find anywhere. Can any give me the link for downloading the same?

View 3 Replies View Related

General :: Red Hat Enterprize - Can To Get It's Source Code?

Mar 22, 2011

Is red hat enterprize linux is open source and if yes from where I can get it's source code?

View 2 Replies View Related

General :: Code For Passive Clustering In NS 2.34?

Apr 4, 2011

How can I get the NS Code for passive clustering in NS 2.34

View 3 Replies View Related

General :: Converting Script To C Code?

Mar 25, 2011

i wanna covert script to C code or any other method to embed this script in C code, script link [URL]

View 1 Replies View Related

General :: Draw UML From Java Code?

Apr 27, 2011

Does anyone know an application that can draw UML graphs automatically from Java code for linux platform. I've tried startuml, but in doesn't work very well.

View 1 Replies View Related

General :: Compile A C Code Which Uses SSH Library?

Jan 26, 2011

i try to compile a c code which uses SSH library,but i get this error

Code:
libssh.h: No such file or directory

i searched and i found that This happens if a library used for linking is not present in the standard library directories used by gcc.

By default, gcc searches the following directories for header files:

/usr/local/include/
/usr/include/

and the following directories for libraries:

/usr/local/lib/
/usr/lib/

i update my libssh from libssh-0.4.2-1.fc13.i686 to libssh-0.4.6-1.fc13.i686, and there are files called libssh.so.4 and libssh.so.4.0.2 in /ur/lib, but i still can't compile it with this command:

gcc test.c

View 3 Replies View Related

General :: How Add Code To Boot Options

Feb 20, 2011

I can get to the grub screen where boot options are editable, but where do I add the above code? And will it "stick" or do i have to input the code every time i boot?

I'm trying to solve is a non-responsive Dell Inspiron 2600 keyboard. I'll tackle the non-responsive trackpad once i get the keyboard working!

View 4 Replies View Related

General :: How To Install From Raw C Source Code?

Mar 13, 2011

I am trying to install the tightVNC on my imac.It expects X install; I see that X11 in my utility. I think it is ok, but the instruction states to install it on /usr/bin/. Which is correct?Then I need to have ~JPEG and ~zlib to place in /usr/bin/ or inside of certain folders to use.To make sure it is ok; I put both of them in both of the indicated places. I assume it is going to work.Now, I am suppose to build and install. I am not sure how to do it with the command "xmkmf" and not sure where to run this command.I am doing all of this in terminal.

View 1 Replies View Related

General :: Call Other Executables From Cpp Code?

Jan 18, 2010

I want to launch other executable from my cpp code. I am aware that system() call may do this , But, problem is that , I want my cpp code to capture the standard hat "called" program is writing to stdout.

View 2 Replies View Related

General :: How To See Shared Objects Code

Jun 30, 2010

I want to know that is there any way to peep inside the shared object and see its code ?

View 4 Replies View Related

General :: Integrating Backend Code With GUI?

Feb 4, 2011

i want to integrate backend (C code) with GUI (its based on java and php), im working on linux cent os.

View 6 Replies View Related

General :: Running Code That Uses Imake?

Jan 20, 2010

I am new to Linux and have asked several Linux enthusiasts about my problem, however I am wondering at this point if it is a lost cause, since many have been unable to help me solve my problem.

I am unable to run a certain C code which uses the obsolete compilation method 'imake'. I would kindly like to ask if there is any way that I can run this code. Am I required to install anything? Or do I have to change the code in some way so that it could run on a more updated compilation method?

View 1 Replies View Related







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