Sponsored Content
Full Discussion: Script help
Top Forums Shell Programming and Scripting Script help Post 302300767 by amitranjansahu on Wednesday 25th of March 2009 02:25:45 AM
Old 03-25-2009
you can pass the file name as variable to the script also
 

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

create a shell script that calls another script and and an awk script

Hi guys I have a shell script that executes sql statemets and sends the output to a file.the script takes in parameters executes sql and sends the result to an output file. #!/bin/sh echo " $2 $3 $4 $5 $6 $7 isql -w400 -U$2 -S$5 -P$3 << xxx use $4 go print"**Changes to the table... (0 Replies)
Discussion started by: magikminox
0 Replies

2. Shell Programming and Scripting

Script will keep checking running status of another script and also restart called script at night

I am using blow script :-- #!/bin/bash FIND=$(ps -elf | grep "snmp_trap.sh" | grep -v grep) #check snmp_trap.sh is running or not if then # echo "process found" exit 0; else echo "process not found" exec /home/Ketan_r /snmp_trap.sh 2>&1 & disown -h ... (1 Reply)
Discussion started by: ketanraut
1 Replies

3. UNIX for Dummies Questions & Answers

Calling a script from master script to get value from called script

I am trying to call a script(callingscript.sh) from a master script(masterscript.sh) to get string type value from calling script to master script. I have used scripts mentioned below. #masterscript.sh ./callingscript.sh echo $fileExist #callingscript.sh echo "The script is called"... (2 Replies)
Discussion started by: Raj Roy
2 Replies

4. Shell Programming and Scripting

Shell script works fine as a standalone script but not as part of a bigger script

Hello all, I am facing a weird issue while executing a code below - #!/bin/bash cd /wload/baot/home/baotasa0/sandboxes_finance/ext_ukba_bde/pset sh UKBA_publish.sh UKBA 28082015 3 if then echo "Param file conversion for all the areas are completed, please check in your home directory"... (2 Replies)
Discussion started by: ektubbe
2 Replies

5. Shell Programming and Scripting

How to block first bash script until second bash script script launches web server/site?

I'm new to utilities like socat and netcat and I'm not clear if they will do what I need. I have a "compileDeployStartWebServer.sh" script and a "StartBrowser.sh" script that are started by emacs/elisp at the same time in two different processes. I'm using Cygwin bash on Windows 10. My... (3 Replies)
Discussion started by: siegfried
3 Replies
DH-AUTORECONF(7)						   dh-autoreconf						  DH-AUTORECONF(7)

NAME
dh-autoreconf - debhelper add-on to run autoreconf during build DESCRIPTION
The dh-autoreconf package provides a sequence addon for debhelper 7 which can be used in the following way: #!/usr/bin/make -f %: dh $@ --with autoreconf This will call dh_autoreconf prior to dh_auto_configure and will call dh_autoreconf_clean before dh_clean. For more information on how to control the autoreconf process or how to other possible options, read the dh_autoreconf(1) and dh_autoreconf_clean(1) manual pages. CDBS INTEGRATION
This package also provides /usr/share/cdbs/1/rules/autoreconf.mk for packages using CDBS. The variable "DEB_DH_AUTORECONF_ARGS" can be used to pass extra arguments to dh_autoreconf, and the variable "DEB_DH_AUTORECONF_CLEAN_ARGS" to pass arguments to dh_autoreconf_clean. See their manual pages for information on available arguments. TIPS AND EXAMPLES
PATCHING LTMAIN.SH FOR AS-NEEDED LINKER FLAGS You can add support for -Wl,--as-needed to ltmain.sh (at least for those ltmain.sh scripts changed during autoreconf) by passing the argument --as-needed to dh_autoreconf, as demonstrated in the following example: #!/usr/bin/make -f %: dh $@ --with autoreconf override_dh_autoreconf: dh_autoreconf --as-needed and for CDBS, by adding it to the correct variable such as: DEB_DH_AUTORECONF_ARGS = --as-needed For more information about this feature, see dh_autoreconf(1) RUNNING MULTIPLE COMMANDS WITH DH_AUTORECONF Please note that you may run dh_autoreconf only once. If you need to run multiple commands, you can put the commands into a script or your debian/rules file and then pass the name of your script to dh_autoreconf. For example, if your script is called debian/autogen.sh, you can put the following into your debian/rules if you use dh: override_dh_autoreconf: dh_autoreconf debian/autogen.sh Or, if you use CDBS: DEB_DH_AUTORECONF_ARGS += debian/autogen.sh CAVEATS
dh_autoreconf is a superset of the autotools-dev debhelper addons, so you do not need --with=autotools_dev if you use --with=autoreconf. In fact, in most cases they should not be used together, as it may lead to unpredictable behaviour. From time to time, there might be a short breakage for those using automatic ltmain.sh patching, when the patch now longer applies to the ltmain.sh. You can only run dh_autoreconf once. Future versions may be able to be run multiple times, but this requires slightly more planning. SEE ALSO
debhelper(7), dh(1), dh_autoreconf(1), dh_autoreconf_clean(1) AUTHOR
Julian Andres Klode <jak@debian.org> dh-autoreconf v7 2012-11-22 DH-AUTORECONF(7)
All times are GMT -4. The time now is 11:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy