SH script, variable built command fails, but works at command line
I am working with a sh script on a solaris 9 zone (sol 10 host) that grabs information to build the configuration command line. the variables Build64, SSLopt, CONFIGopt, and CC are populated in the script. the script includes
When i run the sh -x script.sh i get the following output.
config.log just has: configure:4078: "/usr/local/bin/gcc: No such file or directory.
BUT if I copy that command line and paste it to the prompt everything works.
if i put that expanded command line into the script, it works
Hey there, I'm a total newbie unix guy here and just picking this stuff up. Have a very small script I put together that works fine from the command line but not once I put it in a cron job. Searched and found this thread and am wondering it it has something to do with setting variables, though the... (7 Replies)
I have a very basic script that essentially sends a log file, via FTP, to a backup server. My cron entry to run this every night is:
55 23 * * * /usr/bin/archive_logs
The script runs perfectly when executed manually, and actually worked via cron for about three weeks. However, it mysteriously... (3 Replies)
Hi all-
I'm trying to search through some .gz log files to verify certain feeds have passed through our app.
I have a small script that I wrote in hopes that I could automate the checking but haven't been able to get the zgrep to work. When I copy it to the command line directly it works... (2 Replies)
When I run this code from the command line works
spinel.middlebury.edu:/u02/sct/banner/bandev2/middlebury/shl:DEV2$ ls ef*
eftseq.dat
spinel.middlebury.edu:/u02/sct/banner/bandev2/middlebury/shl:DEV2$ file_seq=$( < eftseq.dat) ... (1 Reply)
Hi everyone,
when executing this command in unix:
echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error.
here is content of my script:
tdbsrvr$ vi hc.sh
"hc.sh" 22 lines, 509... (4 Replies)
Hey guys. Hopefully this is an easy one but having reference similar problems on the web I still can't fix it.
I am doing a recursive find and replace from a script. Of course I could just run the damn thing from the command line but it's bugging me now and want to get it working.
grep -rl... (4 Replies)
Hi guys. My first post, so be gentle...
On my Solaris 10 machine vnc server is running. I need a command to extract most recent client session number (screen). So with:
Code:
bash-3.2# ps -ef | grep vnc | grep Xaut
root 19805 19797 0 15:41:44 ? 0:01 Xvnc :4 -inetd -once... (5 Replies)
OSX 10.9
I am building a script that evaluates the difference between 2 files. Here is a command that does not work transparently.
Running this command in Terminal yields great results; however when I put that line in a .sh script, I get the errors shown below. Am I doing something silly?
... (1 Reply)
Hi,
I am looking for a generic find command that works on both Linux and Solaris.
I have the below command that works fine on Linux but fails on solaris.find /web/config -type f '(' -name '*.txt' -or -name '*.xml' -name '*.pro' ')' Fails on SunOS mysolaris 5.10 Generic_150400-61 sun4v sparc... (1 Reply)
I wish to replace "\\n" with a single white space.
The below does the job on command-line:
$ echo '/fin/app/scripts\\n/fin/app/01/sql' | sed -e 's#\\\\n# #g';
/fin/app/scripts /fin/app/01/sql
However, when i have the same code to a shell script it is not able to get me the same output:... (8 Replies)
Discussion started by: mohtashims
8 Replies
LEARN ABOUT DEBIAN
caca-config
caca-config(1) General Commands Manual caca-config(1)NAME
caca-config - script to get information about the installed version of libcaca
SYNOPSIS
caca-config [ --prefix= DIR] [ --exec-prefix= DIR] [ --version ] [ --libs ] [ --cflags ]
DESCRIPTION
caca-config is a tool that is used to configure and determine the compiler and linker flags that should be used to compile and link
progams, libraries, and plugins that use libcaca.
The use of caca-config is deprecated. The more generic tool pkg-config should be used instead.
OPTIONS --cflags
Print the compiler flags that are necessary to compile a program or library that uses libcaca.
--exec-prefix=DIR
If specified, use DIR instead of the installation exec prefix that libcaca was build with when computing the output for the --cflags
and --libs options. This option must be specified before any of the --cflags and --libs options.
--libs Print the linker flags that are necessary to link a program or library that uses libcaca.
--prefix=DIR
If specified, use PREFIX instead of the installation prefix that libcaca was built with when computing the output for the --cflags
and --libs options. This option is also used for the exec prefix if --exec-prefix was not specified. This option must be specified
before any of the --cflags and --libs options.
--version
Prints the currently installed version of libcaca on standard output.
EXAMPLES
gcc -o main.o $(caca-config --cflags) -c main.c
is how you might use caca-config to compile a C source file for an executable program.
gcc -o my_app $(caca-config --libs) main.o util.o
is how you might use caca-config to link compiled objects into an executable program.
SEE ALSO pkg-config(1)AUTHOR
The libcaca library was written by Sam Hocevar <sam@hocevar.net>.
This manual page was written for sdl-config by Branden Robinson, originally for Progeny Linux Systems, Inc., and the Debian Project. It was
adapted to libcaca by Sam Hocevar.
libcaca 2003-11-22 caca-config(1)