Error in calling a shell script from another script
HI,
We are using two shell scripts, script.sh,env.sh, where env.sh will be called inside script.sh. The variable inside env.sh is used as $var in script.sh.But while running the script its not identifying that variable. Is there any permission needed to call a script inside another script.
The script.sh will have something like
The script env.sh is having
The error we got is
Please help
Thanks in advance
Priya
Last edited by Franklin52; 10-13-2011 at 03:31 AM..
Reason: Please use code tags, thank you
I have a build script. It was created on Linux. For some reason, I got it to windows and modified it. And brought it back again to Linux.
Since there is the question of the ^M chars appearing, the way out is to do a dos2unix on the script file. This is done manually.
Is there a way to call... (4 Replies)
Hi all,
I have two ksh scripts
#sample1.sh
#!/bin/ksh
. ./sample2.sh
echo $fileExist
#sample2.sh
#!/bin/ksh
func()
{
i=1
return $a
}
func
echo $?
Here how should I return the value of sample2.sh back to sample1.sh?
Thanks in advance. (2 Replies)
Hi,
I have one shel script which returns some value and I am calling this shell script from a perl script which needs the out put/return value of shell script.
But I don't know how to collect the output/return value of the shell script. Can any one give some idea on it?
For example:
The... (1 Reply)
Hi,
I am writing a script that needs to call a stored proc which would update a column in a table based on a condition.
I need to also capture the number of rows updated.
However, When I execute the script I keep getting this error:
./test_isql.sh: syntax error at line 33: `end of file'... (3 Replies)
hello everyone
i am beginner on shell scripting .and i am working on my project work on ad hoc network
i wrote a batch (.sh) to do a looping and execute a tcl script i wrote before in each iteration ..but i got this problem "
syntax error near unexpected token `('... (1 Reply)
Hi,
I have written a shell script to grep a certain parameter and send a mail if they found any. Now i want this script to call another script which will restart my application.
Here is my script
#!/bin/sh
DATE=`date +%Y%m%d%H%M%S`
HOME=/home/dumbren/vfnz_data/AMS_report... (0 Replies)
Can someone let me know how could I achieve this
In one of per script I am calling the shell script but I need to so one thing that is one shell script call I need to pass pne argument.In below code I am calling my ftp script but here I want to pass one argument so how could I do this (e.g:... (5 Replies)
Hi,
I am working on a sever A.
I want to write a perl script to execute a shell script persent on the server B.
please help me in this.
thanks in advance. (3 Replies)
I am getting the following error while passing parameter to a shell script called within awk script. Any idea what's causing this issue and how to ix it ? Thanks
sh: -c: line 0: syntax error near unexpected token `newline'
sh: -c: line 0: `./billdatecalc.sh ... (10 Replies)
Hi All,
I need to call a script in another server(Say B).So I logged in my local Machine(say A)using putty and given these command
ssh root@hostname
cd home\oracle
sh script.sh.
This is working perfectly.But when I have those command in a shell script and placed in my local... (2 Replies)
Discussion started by: Nivas
2 Replies
LEARN ABOUT DEBIAN
ldap2tinydns-conf
LDAP2TINYDNS-CONF(1) General Commands Manual LDAP2TINYDNS-CONF(1)NAME
ldap2tinydns-conf - part of the ldap2dns DNS management system
SYNOPSIS
ldap2tinydns-conf
DESCRIPTION
This manual page documents briefly the ldap2tinydns-conf command. This manual page was written for the Debian GNU/Linux distribution
because the original program does not have a manual page yet.
ldap2tinydns-conf is a shell script to help configure ldap2dns for use with tinydns. This script wil add the directory structure and files
required to run ldap2dns under daemontools.
Run this script within your tinydns directory.
For example: root@host[/var/tinydns]# ldap2tinydns-conf
This creates the ldap2tinydns directory under your tinydns directory and adds the default configuration under ldap2tinydns/env.
OPTIONS
This shell script does not take any commanline options.
SEE ALSO
tinydns, ldap2dns(1).
Please visit the project homepage for more detail: [http://ldap2dns.tiscover.com/]
AUTHOR
This manual page was written by Johann Botha <joe@blio.net>, for the Debian GNU/Linux system and is distributed under the GPL version 2 or
later.
Jacob Rief <jacob.rief@tiscover.com> is the original author of this program..
June 7, 2001 LDAP2TINYDNS-CONF(1)