I figured out the problem in my script ,
It generated this path
"/sw/lib/ImageMagick-6.5.4/modules-Q16/codersycbcr.a"
which should have been
"/sw/lib/ImageMagick-6.5.4/modules-Q16/coders/ycbcr.a"
Thank you very much. I normally feed exten wildcards "*.a" or "*.dylib". I need to make checks for file existence.
Quote:
Your script will fail if any of the filenames contain spaces.
I have faced that problem too. How should I handle white spaces in file paths?
cat .servers | while read LINE; do
ssh jason@$LINE $1
done
exit 1
./command.ksh "ls -l ~jason"
Why does this ONLY iterate on the first server in the list? It's not doing the command on all the servers in the list, what am I missing?
Thanks!
JP (2 Replies)
Hello
I' m confused a bit.
I want to replace string "&" with "&" using this command.
sed 's/&/&/g'
and it doesn't work. Nothing happens.
On the other side this works:
sed 's/&/@/g'
or sed 's/&/^/g' !!!
Can somebody help please?
Thanks (3 Replies)
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
If there exists a field in stdin, print it, otherwise, print hello.....
These print nothing:
cat /dev/null | awk '{if ( length > 0 ) print $1; else print "hello"}'
cat /dev/null | awk '{if ( $1 ) print $1; else print "hello"}'But the scripts work if I run them directly in a terminal:
... (8 Replies)
I have a folder that I need to search for new files and copy on the latest. I've been using "-mtime -1" in my command line but it doesn't seem to work.
I've been meaning to fine a different script because files are dropped into the folder all day long and because of the -mtime, I've only be... (19 Replies)
Hi,
I need to use remsh inside a ksh script. The script would remsh to another machine (maybe different OS) and then execute commands.
A Simple Script:
#!/usr/bin/ksh
remsh sun7656 -l myuser "cd /user.3/MyFolder; ls -lart"
But this gives me the error:
permission denied
I also... (4 Replies)
i have this script and when i ejecute it, the console tell me this " sintax error line 41 unexpected element "}" "
is the sintaxis ok?
#!/bin/bash
if ;then
{
exit 0;
}
if ; then
{
sudo /etc/init.d/apache2 start;
sudo /etc/init.d/mysql start;
php5 &
nautilus... (3 Replies)
gcc packages are installed as is seen.
# pkginfo | grep -i gcc
system SUNWgcc gcc - The GNU C compiler
system SUNWgccruntime GCC Runtime libraries
#
There is gcc in /usr/sfw/bin but It doesn't work.
# gcc
bash: gcc: command not found... (7 Replies)
Hi,
I am using korn shell.
until ]
do
echo "\$# = " $#
echo "$1"
shift
done
To the above script, I passed 2 parameters and the program control doesn't enter inside "until" loop. If I change it to until ] then it does work.
Why numeric comparison is not working with -ne and works... (3 Replies)
Discussion started by: ab_2010
3 Replies
LEARN ABOUT DEBIAN
magick-config
Magick-Config(1) General Commands Manual Magick-Config(1)NAME
Magick-config - get information about the installed version of ImageMagick
SYNOPSIS
Magick-config [--cflags] [--cppflags] [--exec-prefix] [--ldflags] [--libs] [--prefix] [--version]
DESCRIPTION
Magick-config prints the compiler and linker flags required to compile and link programs that use the ImageMagick Application Programmer
Interface.
EXAMPLES
To print the version of the installed distribution of ImageMagick, use:
Magick-config --version
To compile a program that calls the ImageMagick Application Programmer Interface, use:
cc `Magick-config --cflags --cppflags --ldflags --libs` program.c
OPTIONS --cflags
Print the compiler flags that were used to compile libMagick.
--cppflags
Print the preprocessor flags that are needed to find the ImageMagick C include files and defines to ensure that the ImageMagick data
structures match between your program and the installed libraries.
--exec-prefix
Print the directory under which target specific binaries and executables are installed.
--ldflags
Print the linker flags that are needed to link with the ImageMagick library.
--libs Print the linker flags that are needed to link a program with libMagick.
--version
Print the version of the ImageMagick distribution to standard output.
LICENSE
See http://www.imagemagick.org/script/license.php.
AUTHORS
John Cristy, ImageMagick Studio LLC
ImageMagick 2 May 2002 Magick-Config(1)