Is it possible to call a C function from within a shell script. This C function is part of an API. What do I need to make it work from my shell script. Anybody please help. (4 Replies)
i just finished a project for a c++ class that i wrote at home on my computer, compiled with gcc. when i brought the code into school it would not compile, it would complain that cannot call main() function. at school we use ancient borland c++ from 1995. anyway my program has 20 different... (3 Replies)
I have created a file generic.func and it has lots of functions. One of the functions is this:
Check_backup_size()
{
dsmc q b $BACKUP_DIR/"*.Z" | awk '{print $1}'|sed 's///g' > outputfile
X=`awk '{sum += $1} END {print sum }' outputfile'`
echo "$X"
ls -ltr $BACKUP_DIR/"*.Z" | awk... (5 Replies)
:confused:Hi ,
I have a script as shown below:
rpttxt()
{
name="$*"
awk '/'"${name}"'/ {print $2 $3"=" $4}' file.txt
}
xx = rpttxt "COL_HEAD_1"
awk 'BEGIN {printf("%36s \n ","'"$xx"'")}'
rpttxt() is a function..I want to store the final result of this function in... (3 Replies)
This is my function which is creating three variables based on counter & writing these variable to database by calling another function writeRecord
but only one record is getting wrote in DB.... Please advise ASAP...:confused:
function InsertFtg
{
FTGSTR=""
echo "Saurabh is GREAT $#"
let... (2 Replies)
Hi Friends,
While calling a function in below scipt
func_serv_logs ()
{
find . -type f \( \( -name 'WLS*' -o -name 'access*' \) -a ! -name '*.gz' -a ! -newer ${REFERENCE} \) -print | while read FILENAME
do
echo "hi"
done
}
func_serv_logs
I am getting error... (4 Replies)
Hi,
I need to run start_load function for two tables.
Step 1: if HMAX_TBL_ID and GMAX_TBLI_D are same for tab_name1 then echo message "all table ids are processed"
Step 2: go back and call start_load for tab_name2 and check if table id are same for table 2 too.
Please let me know how to... (5 Replies)
In my prog if i enter the input for the 1st time it is executing correctly,
but for the second time entire script is not executing it just exiting
my code is
#!/bin/sh
checkpo()
{
echo "Checking the entered PO to create output text file ";
IFS=$'\n'
set -f
var=0
for i in $(cat... (3 Replies)
I have a script which does gunzip, zip and untar.
Input to the script is file name and file directory (where file is located)
I am reading the input parameters as follows:
FILENAME=$1
FILEDIR=$2
I have created 3 functions that are as follows:
1) gunzip file
2) unzip file... (2 Replies)
Discussion started by: pinnacle
2 Replies
LEARN ABOUT DEBIAN
ubuntu-dev-tools
ubuntu-dev-tools(5) File Formats Manual ubuntu-dev-tools(5)NAME
ubuntu-dev-tools - Configuration for the ubuntu-dev-tools package.
DESCRIPTION
The ubuntu-dev-tools package is similar in scope to the devscripts(1) package, providing a collection of scripts which may be of use to
Ubuntu and Debian developers or others wishing to build Debian packages.
Some of these scripts have options which may be configured on a system-wide and per-user basis. These options are configured in
devscripts.conf(5).
All variables are described in the script's manpages. Package-wide variables begin with "UBUNTUTOOLS" and are listed below.
Every script which reads the configuration files can be forced to ignore them by using the --no-conf command-line option.
ENVIRONMENT
All ubuntu-dev-tools configuration variables can be set (and overridden) by setting them in the environment (unlike devscripts).
In addition, several scripts use the following environment variables:
UBUMAIL
Overrides DEBEMAIL and DEBFULLNAME when the target is clearly Ubuntu. Can either contain an e-mail address or Full Name
<email@example.org>.
DEBEMAIL, DEBFULLNAME
As in devscripts(1).
PACKAGE-WIDE VARIABLES
The currently recognised package-wide variables are:
UBUNTUTOOLS_BUILDER
This specifies the preferred test-builder, one of pbuilder (default), sbuild, pbuilder-dist.
UBUNTUTOOLS_DEBIAN_MIRROR
The preferred Debian archive mirror. Should be of the form http://ftp.debian.org/debian (no trailing slash). If not specified, the
master will be used.
UBUNTUTOOLS_DEBSEC_MIRROR
The preferred Debian security archive mirror. Should be of the form http://security.debian.org (no trailing slash). If not speci-
fied, the master will be used.
UBUNTUTOOLS_UBUNTU_MIRROR
The preferred Ubuntu archive mirror. Should be of the form http://archive.ubuntu.com/ubuntu (no trailing slash). If not specified,
the master will be used.
UBUNTUTOOLS_UBUNTU_PORTS_MIRROR
The preferred Ubuntu archive mirror. Should be of the form http://ports.ubuntu.com (no trailing slash). If not specified, the mas-
ter will be used.
UBUNTUTOOLS_LPINSTANCE
The launchpad instance to communicate with. e.g. production (default) or staging.
UBUNTUTOOLS_MIRROR_FALLBACK
Whether or not to fall-back to the master archive mirror. This is usually the desired behaviour, as mirrors can lag the masters.
If on a private network with only a local mirror, you may want to set this to no. One of yes (default) or no.
UBUNTUTOOLS_UPDATE_BUILDER
Whether or not to update the test-builder before each test build. One of yes or no (default).
UBUNTUTOOLS_WORKDIR
The directory to use for preparing source packages etc. When unset, defaults to a directory in /tmp/ named after the script.
SEE ALSO devscripts(1), devscripts.conf(5)AUTHORS
This manpage was written by Stefano Rivera <stefanor@ubuntu.com>.
ubuntu-dev-tools December 19 2010 ubuntu-dev-tools(5)