I'm a scripting noob in need of some help
I am creating a script that checks the filesystems and will alert based upon if the percent full is greater than the threshold set.
The problem that I am having is that when I set the 'filesystem' variable, all of the output is treated as 1 single variable instead of 4 variables that will run through.
so: /dev/sda2 /dev/sda1 /dev/sda3 /dev/sda4 will be set as 1 variable instead of being broken out and spilt into 4 different variables...
I think this needs to be done with an array, but i'm not sure how to accomplish this.
Ksh Scripting
Can some one give me a simple example of array operations using ksh.
For Ex:
week_array = {Sunday Monday Tuesday Wednesday Thursday Friday Saturday}
I want to assign and retrieve and print them along with their index.
I am looking for the o/p like:
0 Sunday
1 Monday ... (2 Replies)
We're trying to install a third T3 array onto our V880. The other two T3's are connected to a qlogic fibre card. We can see this connection fine when we do a luxadm probe -p command. The full device paths are shown etc. ie: the first T3's logical name is c2t1d0 and the second one is c3t1d0.
... (3 Replies)
I have figured out how to grep the file like this:
echo `grep $(date +'%Y-%m-%d') Cos-01.csv | cut -d',' -f1`
The above line does echo the correct information from the lines in which my search criteria is found.
Now I am trying to get that information (Yes, just one column of every line) into... (6 Replies)
Hi,
I am having two set of files with different number of columns and rows.
A set of files have only single row with 20 columns.
B set of files have 1000s of rows with 5 columns.
both set contains equal number of files.
I want to save all the 20 columns of A in variables one by one and... (21 Replies)
Hi Everyone,
I have a ksh script that queries a database. The query output looks like this:
$queryResult =
echo ${queryResult} = name1
echo ${queryResult} = age1
echo ${queryResult} = name2
echo ${queryResult} = age2
...
I need to insert those values into a new array that would... (2 Replies)
I am trying to code a 4 by 4 array. However the naming convention is diffrent.
Please refer the image below
https://lh5.googleusercontent.com/-Dl0vdjfXtU0/Tnh02_ORJpI/AAAAAAAAAKU/4c2zyFP9IB0/array.JPG
I want to name them in order :
from 0 to 3 --> (0,0) cell to (0,3)
from 4 to 7 --> (1,0)... (0 Replies)
hi
My script as below
#!/bin/ksh
for i in `seq 1 7`
do
a=$(awk '{print $i}' /home/rama/expenese.txt)
done
for i in `seq 1 7`
do
echo "${a}"
done
content of expense.txt is as below
5032 210179 3110 132813874 53488966 11459221 5300794
I want output as... (6 Replies)
Hi
I have stored a command output in an array like below
@a = `xyz`;
actually xyz comnad will give the output like this
tracker
date
xxxxxxx
xxxxxxx
---------------------
1 a
2 b
----------------------
i have stored the "xyz" output to an... (3 Replies)
This is the sample json I have pasted here. I want all the IP address strings to be converted into an array. For example "10.38.32.202" has to be converted to everywhere in the JSON. There are multiple IPs in a JSON I am pasting one sample object from the JSON. But the IPs already in an Array... (11 Replies)
Hi,
I would like to know how to define the size of the array in c shell scripting. (15 Replies)
Discussion started by: gopishrine
15 Replies
LEARN ABOUT MOJAVE
conjure
conjure(1) General Commands Manual conjure(1)NAME
conjure - interprets and executes scripts written in the Magick Scripting Language (MSL).
SYNOPSIS
conjure [options] script.msl
OVERVIEW
The conjure program is a member of the ImageMagick(1) suite of tools. Use it to process a Magick Scripting Language (MSL) script. The Mag-
ick scripting language (MSL) will primarily benefit those that want to accomplish custom image processing tasks but do not wish to program,
or those that do not have access to a Perl interpreter or a compiler.
For more information about the conjure command, point your browser to file:///usr/share/doc/packages/ImageMagick/www/conjure.html or
http://www.imagemagick.org/script/conjure.php.
DESCRIPTION
Image Settings:
-monitor monitor progress
-quiet suppress all warning messages
-regard-warnings pay attention to warning messages
-seed value seed a new sequence of pseudo-random numbers
-verbose print detailed information about the image
Miscellaneous Options:
-debug events display copious debugging information
-help print program options
-log format format of debugging information
-list type print a list of supported option arguments
-version print version information
In additiion, define any key value pairs required by your script. For example,
conjure -size 100x100 -color blue -foo bar script.msl
SEE ALSO ImageMagick(1)COPYRIGHT
Copyright (C) 1999-2010 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file:///usr/share/doc/pack-
ages/ImageMagick/www/license.html or http://www.imagemagick.org/script/license.php
ImageMagick Date: 2009/01/10 01:00:00 conjure(1)