Sponsored Content
Full Discussion: Wrong parameters are taking
Top Forums Shell Programming and Scripting Wrong parameters are taking Post 303027886 by nezabudka on Thursday 27th of December 2018 11:22:15 AM
Old 12-27-2018
Quote:
Originally Posted by venkat918
...
Code:
...
for skyline_instance_name in `(cd /var/lib/mysql;ls -d skyline? | grep -v skyline1)`
...

it will redirect in to these files skyline1_ERR_LIST.log,skyline2_ERR_LIST.log,skyline3_ERR_LIST.log...)
Code:
... > /home/idcuser/logs/${skyline_instance_name}_ERR_LIST.log
...
echo "<BR>INSTANCE NAME is : T0${val1}<BR>">> email.html

Maybe because you have a variable $skyline_instance_name == [ skyline2, skyline3, skyline4, skyline5 ] but not skyline1
and does not exist file skyline1_ERR_LIST.log
Array num == [ 2, 3, 4, 5]; hence the variable $val1 starts with 2

Last edited by nezabudka; 12-27-2018 at 12:40 PM..
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Asking on taking in and out paramter

Hi , as i'm doing a .sh script that uses $datafile variable to spool my value into another .sh script. How do i spool out my maybe another value from my second script file back to my first .sh script??? What does this exit $? mean? Thanks a lot! (1 Reply)
Discussion started by: blueberry80
1 Replies

2. UNIX for Dummies Questions & Answers

Taking a name out of $PATH

so here is my path: /usr/bin:/bin:/usr/sbin:/sbin:/Users/a:/usr/local/bin:/usr/X11/bin how would I remove only the "a" or name string within it? any help appreciated (7 Replies)
Discussion started by: cleansing_flame
7 Replies

3. Programming

Dynamic loader taking function from wrong lib

Hi, I have two dynamically loaded libraries (shared objects), both of which include functions of the same name - foo. When I call 'foo' from libA, it takes it from libB, although it is implemented in libA as well. Since we need the function to be called from libA, we tried linking it with the... (1 Reply)
Discussion started by: rimon
1 Replies

4. Shell Programming and Scripting

Taking a particular attribute's value in a file...

HI, Iam new to scripting..I need some guidance for invoking the following logic.. My input file contains Event Time = Thu, Nov 6, 2008 08:41:56 AM Probable Cause = UnspecifiedReason Specific Problems = BTS down due to Tx ... (16 Replies)
Discussion started by: Llb
16 Replies

5. AIX

tuning network parameters : parameters not persist after reboot

Hello, On Aix 5.2, we changed the parameters tcp_keepinit, tcp_keepintvl and tcp_keepidle with the no command. tunrestore -R is present in inittab in the directory /etc/tunables we can clearly see the inclusion of parameters during reboot, including the file lastboot.log ... (0 Replies)
Discussion started by: dantares
0 Replies

6. Shell Programming and Scripting

taking characters and counting them

Nevermind, I figured out a way using the sed command. But I forget the basic way of counting characters within a variable :( (4 Replies)
Discussion started by: puttster
4 Replies

7. UNIX Desktop Questions & Answers

scripts taking arguments

I am trying to write a script using commands to print a sequence of numbers. However, I can't get jot to recognize what I give it. Terri$ cat mncmd echo "m=$1" echo "n=$2" $jot $2 Terri$ ./mncmd 1 10 m=1 n=10 ./mncmd: line 3: $2: command not found I've also tried Terri$ cat... (3 Replies)
Discussion started by: justOne21
3 Replies

8. Shell Programming and Scripting

Why result is wrong here ? whether break statement is wrong ?

Hi ! all I am just trying to check range in my datafile pls tell me why its resulting wrong admin@IEEE:~/Desktop$ cat test.txt 0 28.4 5 28.4 10 28.4 15 28.5 20 28.5 25 28.6 30 28.6 35 28.7 40 28.7 45 28.7 50 28.8 55 28.8 60 28.8 65 28.1... (2 Replies)
Discussion started by: Akshay Hegde
2 Replies
FAXSETUP(8)						      System Manager's Manual						       FAXSETUP(8)

NAME
faxsetup - setup a machine for use with HylaFAX SYNOPSIS
/usr/sbin/faxsetup [ -client ] [ -server ] [ -with-VAR[=value] ] DESCRIPTION
faxsetup is an interactive shell script that does the necessary setup work to configure a client or server machine for the HylaFAX soft- ware. faxsetup must be run on every HylaFAX server machine before the software will function-if a HylaFAX server program or script is invoked before faxsetup is run, the command will abort with a message that says to run faxsetup. faxsetup may optionally be run on a HylaFAX client machine to verify the configuration of the software. By default faxsetup checks a machine for use both as a HylaFAX client and server. Client-specific checks include: o the installation of client programs and data, o the installation of the Adobe Font Metric (AFM) information files used by the HylaFAX text formatting support. Server-specific checks include: o the installation of server programs and data, o the existence of the UUCP lock file directory, o the installation of the TIFF software tools, o the configuration of the getty programs invoked for data and voice calls, o the pathnames for various system programs used by server shell scripts, o proper support for FIFO special files, o proper installation of a POSTSCRIPT RIP, o definition of a ``fax'' user, o definitions for the ``hylafax'' and ``snpp'' services, o startup of the HylaFAX server processes: faxq(8) and hfaxd(8), o definition of a ``FaxMaster'' mail alias for reporting server problems. For server machines faxsetup also creates two files that are required by the HylaFAX command scripts. One file contains master configura- tion parameters and the other contains various definitions used by scripts such as faxaddmodem(8) that communicate with modems. OPTIONS
-client Do client-specific consistency checks. -server Do server-specific consistency checks. -with-VAR[=value] Override the default definition for the configuration parameter named VAR; optionally specifying a new value (if no value is specified then ``yes'' is used). This option is especially useful to override the default settings for the POSTSCRIPT inter- preter package to use (e.g. ``-with-PS=dps''), the spooling directory (``-with-DIR_SPOOL=/mumble''), the directory where the tool applications of TIFF software distribution are located (``-with-TIFFBIN=/usr/freeware''), etc. A complete list of the possible parameters can be found by looking at the contents of the faxsetup shell script; many of these configuration parameters are also described in the online documentation -help Print a help message and terminate. -quiet Do not print verbose messages to the terminal. -verbose Print informative messages to the terminal (default). BUGS
faxsetup does not query a modem to find out its capabilities when invoking the faxmodem program to setup a server in a send-only configura- tion; it may be necessary to run faxmodem manually. FILES
/var/spool/hylafax/etc/setup.cache master configuration parameters /var/spool/hylafax/etc/setup.modem modem-related configuration support Consult hylafax-server(5) for a complete discussion of the structure and content of the spooling area. SEE ALSO
hylafax-server(5), hylafax-config(5), faxq(8), faxgetty(8), faxmodem(8), faxconfig(8), faxsend(8) August 26, 1996 FAXSETUP(8)
All times are GMT -4. The time now is 05:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy