01-16-2012
Help needed in calling path file from Perl script.
Hi All,
I need help in accessing a path file (
path.xyz_pqr) not having a shell shebang and exporting paths in the following syntax,
export DB_SCRIPT_PATH="/abc/aash/scripts/db_scripts/xyz_pqr"
export SRC_FILES_DIR="/bcd/fdw/incoming/xyz_pqr"
I need to use the path contained in the DB_SCRIPT_PATH variable.
Tried using
system,
`` and
exec also referred to earlier posts like
https://www.unix.com/shell-programmin...ent-shell.html
but could not get it working.
The
path.xyz_pqr file works when called using ./path/of/
path.xyz_pqr file on the command prompt but not through my perl script.
I am currently working on /usr/bin/sh shell. Please help m ein calling this path file in my Perl script and using the
DB_SCRIPT_PATH variable in my Perl script for getting the path stored in it.
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
: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)
Discussion started by: jisha
3 Replies
2. Shell Programming and Scripting
I am new to perl, and need a script to pull a CSV file, strip out 2 leading columns, and 2 ending columns, and resave the file in a new location. The file is basic and has less than 10,000 records. Secondly, can I schedule perl scripts to run daily? Can someone provide the basic script to... (1 Reply)
Discussion started by: cobbjob
1 Replies
3. Shell Programming and Scripting
hi all,
I have 3 perl scripts a.pl,b.pl and c.pl
each of these work when i pass a date for eg: perl c.pl 2010-05-27
now i want to write a perl script that would call the 3 scripts and make it run all the 3 scripts (a.pl,b.pl,c.pl) parallelly rather than 1 after the other.......
pls... (2 Replies)
Discussion started by: siva_nagarajan
2 Replies
4. Shell Programming and Scripting
This is the ldf file
dn: sdcsmsisdn=1000000049,sdcsDatabase=subscriberCache,dc=example,dc=com
objectClass: sdcsSubscriber
objectClass: top
postalCode: 29600
sdcsServiceLevel: 10
sdcsCustomerType: 14
givenName: Adelia
sdcsBlackListAll: FALSE
sdcsOwnerType: T-Mobile
sn: Actionteam... (1 Reply)
Discussion started by: LinuxFriend
1 Replies
5. Shell Programming and Scripting
Hi am new to perl script ..
i need some useful tutorials links to learn perl script..
and a sample script to call a php file from perl script..
thanks.. (3 Replies)
Discussion started by: senkerth
3 Replies
6. Shell Programming and Scripting
I am creating a startup script for an application. This application's startup script is in bash. It will also need to call a perl script (which I will not be able to modify) for the application environment prior to calling the application. The problem is that this perl script creates a new shell... (5 Replies)
Discussion started by: leepet01
5 Replies
7. Shell Programming and Scripting
I am trying to run a perl script which needs input arguments from a parent perl script, but doesn't seem to work. Appreciate your help in this regard.
From parent.pl
$input1=123;
$input2=abc;
I tried calling it with
system("/usr/bin/perl child.pl $input1 $input2");
and
`perl... (1 Reply)
Discussion started by: grajp002
1 Replies
8. Shell Programming and Scripting
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)
Discussion started by: anuragpgtgerman
5 Replies
9. Shell Programming and Scripting
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)
Discussion started by: anandgodse
3 Replies
10. Shell Programming and Scripting
I have a function which does awk proceessing
sub mergeDescription {
system (q@awk -F'~' '
NR == FNR {
A = $1
B = $2
C = $0
next
}
{
n = split ( C, V, "~" )
if... (3 Replies)
Discussion started by: crypto87
3 Replies
LEARN ABOUT DEBIAN
simplify
SIMPLIFY(1) General Commands Manual SIMPLIFY(1)
NAME
simplify - a script to simplify a MIME message
SYNOPSIS
simplify [args ...] < message > othermessage
DESCRIPTION
This manual page documents briefly the simplify command. simplify is a Perl script to simplify a MIME message.
This script never loads the entire message into memory, but does dump it's entire contents to disk once.
OPTIONS
mime=no
Don't use MIME, no HTML mail allowed.
testing=yes
Run in testing mode (suppress randonmess)
saveall=yes
Save all attachments to files.
temp=/path/to/working/dir/
Defaults to /tmp.
url=http://box/path/
URL-prefix for printing paths to attachments
header=text...
Text preceding the attachment URL list.
textsig=/path/to/file
Text signature to append to text parts.
htmlsig=/path/to/file
HTML signature to append to HTML parts.
If "saveall" is yes, then the script will save all attachments to disk so people can access their contents later. If an URL is specified
then that automatically implies "saveall=yes". Without this, the default behavior is to only save text and html parts, and delete them and
all working directories when the script is finished.
SEE ALSO
sanitizer(1). More info on configuration: /usr/share/doc/sanitizer/sanitizer.html
AUTHOR
Bjarni R. Einarsson <bre@klaki.net>
This manual page was written by Alberto Gonzalez Iniesta <agi@agi.as> for the Debian GNU/Linux system (but may be used by others).
May 14, 2003 SIMPLIFY(1)