02-25-2011
Trying again: try to use the full path to gcc in the script.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Thanks
AVKlinux (6 Replies)
Discussion started by: avklinux
6 Replies
2. UNIX for Dummies Questions & Answers
In bash, I can match the ' character in a substition involving the line ending symbol $, easily.
In tcsh I ran into a problem.
Code:
sed "s/$/'/g" filename
sed "s/$/'/g" < filename
sed -e "s/$/'/g" filename
Unmatched '.
Where can I find out why this is the case? (2 Replies)
Discussion started by: uiop44
2 Replies
3. Shell Programming and Scripting
So I am new to unix, and actually anything outside drag and drop with the mouse (been learning for about a week so far) . I have been using the foreach command in tcsh because I am working on a group of files. Basically what I need is to insert part of the filename as the first line in the file.... (0 Replies)
Discussion started by: thepolypore
0 Replies
4. HP-UX
Hi,
I need to find tcsh shell version info on several boxes.
I made a script and running on boxes through SSH.
This is what i am doing :
echo /bin/tcsh -c 'echo $version' | ssh "box name"
but i dont see anything.
if i run /bin/tcsh -c 'echo $version' on ocal machine i see the... (2 Replies)
Discussion started by: kailash19
2 Replies
5. UNIX for Dummies Questions & Answers
Greetings!
I love the power and control offered by BASH but detest its syntax! Is there some alternative *nix shell language? (other than TCSH)
Or maybe a wrapper that affords the use of BASH commands via an easier syntax?
I considered creating a complicated system of aliases to... (8 Replies)
Discussion started by: Koalaboration
8 Replies
6. Shell Programming and Scripting
Hello,
When i run a bash script on ubuntu i get this message..
#!/bin/bash cannot find file or directory...
Can anibody help me with this, because the file actually exists....
Is there any extra configuration to be made? (5 Replies)
Discussion started by: oliveiraum
5 Replies
7. Shell Programming and Scripting
As I stated in a previous thread - I'm a newbie to Unix/Linux and programming. I'm trying to learn the basics on my own using a couple books and the exercises provided inside.
I've reached an exercise that has me stumped. I need to write a bash script that will will read in a file and print the... (11 Replies)
Discussion started by: ksmarine1980
11 Replies
8. Shell Programming and Scripting
So, I made a script beginning with #!/bin/bash on gedit.
And I double clicked it to run in terminal and I end up with "The child process exited normally with status 127" and "command not found".
If I run the same script from the terminal as "tcsh (script name)" it runs just fine.
If I... (8 Replies)
Discussion started by: OntorEska
8 Replies
9. Shell Programming and Scripting
As part of a bash the below line strips off a numerical prefix from directory 1 to search for in directory 2.
for file in /home/cmccabe/Desktop/comparison/missing/*.txt
do
file1=${file##*/} # Strip off directory
getprefix=${file1%%_*.txt}
... (5 Replies)
Discussion started by: cmccabe
5 Replies
10. UNIX for Beginners Questions & Answers
I need to find a file and print its contents
I am trying but it is not working
find -path /opt/app-root/src/.npm/_logs -type f -name "*.log" -print
Version
$ bash -version
GNU bash, version 4.4.12(1)-release (x86_64-pc-msys) (1 Reply)
Discussion started by: SVRao19056
1 Replies
FAUCC(1) FAUCC(1)
NAME
faucc - C compiler generating Intel code for 16 bit/32 bit CPUs.
SYNOPSIS
faucc [ -B path ] [ -D MACRO [=def]] [ -E ] [ -I path ] [ -L path ] [ -MD ] [-MF file ] [ -MP ] [ -MT target ] [ -O level ] [ -S ]
[ -T script ] [ -U macro ] [ -Wl,arg ] [ -Xlinker arg ] [ -b arch ] [ -c ] [ -f arg ] [ -m arch ] [ -nostdlib ] [ -o output ]
[ -print-lib-faucc-file-name ] [ --freestanding ] [ --no-stack-protector ] { file ...}
DESCRIPTION
faucc is a C compiler, that can generate Intel 16 bit or 32 bit Code.
OPTIONS
faucc tries to mimic the options of gcc. A number of options will be passed to the C preprocessor cpp or to the linker (done via a call to
the c-compiler gcc) in unmodified form.
-B path
Override the directory prefix where cc1 is looked up with path.
-D MACRO, -D MACRO=def
Define MACRO with the optional initial definition def. If def is omitted, it defaults to 1.
-E
Only perform preprocessing, but do not run the compiler.
-I path
Add path to the include path in which header files are searched.
-L path
Add path to the library search path, in which the linker will look for libraries.
-MD
Output dependency information while preprocessing.
-MF, file
Output dependency information while preprocessing to file.
-MP,
When the preprocessor should output dependency information, it will generate PHONY targets for each dependency.
-MT target
When the preprocessor should output dependency information, use target as the dependency rule target.
-O level
Currently ignored.
-S
Output assembly code.
-T script
Use script as linker script.
-U macro
Undefine a previously defined macro.
-Wl,arg, -Xlinker arg
Pass arg to the linker.
-b arch
Generate code for arch (either i286 or i386)
-c
Perform compilation, but do not link.
-f arg
Pass code generation argument arg to the compiler. See the cc1 man page for possible arguments.
-m arch
Currently ignored.
-nostdlib
With this option, the linker will only search for libraries that are passed as command line arguments.
-o file
Write output to file.
-print-libfaucc-file-name
Print the full path of the internal compiler library libfaucc.a.
-static
Perform static linking.
--freestanding, --no-stack-protector
Currently ignored.
EXAMPLES
faucc -c hello-world.c -o hello-world.o
Compile the program hello-world.c and output the object as hello-wolrd.o.
faucc -S -b i286 -o test.s test.c
Compile the program test.c to 16 bit code and output the assembly listing to test.s, but do not assemble or link the result yet.
SEE ALSO
cc1(1) , cpp(1) , gcc(1) , ld(1)
CONTACT
Please report all bugs to FAUcc Team <info@faumachine.org>. FAUcc Homepage [1].
AUTHOR
FAUcc Team
COPYRIGHT
Copyright (C) 2009 FAUcc Team. Developed at Friedrich Alexander University Erlangen-Nuremberg.
FAUcc comes with ABSOLUTELY NO WARRANTY. FAUcc is free software; you can redistribute it and/or modify it under the terms of the GNU
General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later
version. See COPYING for details.
NOTES
1. FAUcc Homepage
http://www.faumachine.org
FAUcc Team 03/08/2009 FAUCC(1)