04-01-2005
using export command
I saw a unix shell script in which export command is used like this :
export filename
what is a file exported for ?
thanks
srini
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is there any difference between these 2 commands :-
export var="a"
and
var="a"
export var (2 Replies)
Discussion started by: radhika03
2 Replies
2. UNIX for Advanced & Expert Users
Hi all,
Want to know what does export command do??
What is its functionality?
And on a shell prompt
$at=1
$ echo $at
1
The variable above is it available to other script??? (3 Replies)
Discussion started by: prakash.kudreka
3 Replies
3. UNIX for Dummies Questions & Answers
Hi All
I am getting and error export command not found
What can be the possible reasons for this and how do we verify those
Please help me
Thanks (1 Reply)
Discussion started by: networking
1 Replies
4. Shell Programming and Scripting
Sorry for the duplicate thread this one is similar to the one in
https://www.unix.com/shell-programming-scripting/88132-awk-sed-script-read-values-parameter-files.html#post302255121
Since there were no responses on the parent thread since it got resolved partially i thought to open the new... (4 Replies)
Discussion started by: rajan_san
4 Replies
5. Shell Programming and Scripting
Hello All,
I am transferring a file from one server to another server.
File name is stored as Wip_DD-MM-YY .i.e if we run the program today the file is stored as Wip_18-FEB-09.txt.
This file i need to transfer.
My question is how do we assign the this filename to a variable.
i treid in... (3 Replies)
Discussion started by: chpraveen_862
3 Replies
6. Shell Programming and Scripting
Hi,
I need help for using export command. Lets consider there are 2 servers ie. A & B. I am running one script on server A which calls another script on server B using remsh command. There is one variable in the script on server B which do not gets evaluated and ultimately i get the error.
... (3 Replies)
Discussion started by: tushar_shah06
3 Replies
7. UNIX for Dummies Questions & Answers
Hi
The command "ssh -V" works as normal user but fails as root.
As Normal user:
bash-3.00$ ssh -V
OpenSSH_5.9p1, OpenSSL 1.0.0e 6 Sep 2011As Root user:
# ssh -V
bash: ssh: command not found
Thanks (1 Reply)
Discussion started by: frintocf
1 Replies
8. Shell Programming and Scripting
I am running the export command within a view to use that value inside my build script. But while executing it it is saying "export command not found"
My code is as follows:
--------------------------
#!/bin/sh
user="test"
DIR="/bldtmp/"$user
VIEW="test.view1"
echo "TMPDIR before export... (4 Replies)
Discussion started by: dchoudhury
4 Replies
9. Shell Programming and Scripting
Hello Team,
Could you pls explain how export command works in below code:
for i in ${!SDV_*}; do
export $i
done
As per my understanding, if
SDV_1=test1;SDV_2=test2;test1=var1;test2=var2then in for loop below export will get executed.
export var1;export var2But, Will this... (3 Replies)
Discussion started by: chandana.hs
3 Replies
10. Shell Programming and Scripting
Hello,
Please see the script found in my computer below. (Ubuntu 14.04)
#!/bin/sh
export APP_DIR="/home/appname"
monitorscript="$APP_DIR""/monitor.sh"
ps cax | grep monitor.sh > /dev/null
if ; then
echo "monitor.sh is running"
else
"$monitorscript"
fi
My question is regarding EXPORT... (3 Replies)
Discussion started by: baris35
3 Replies
LEARN ABOUT CENTOS
db2ldif
DB2LDIF(8) System Manager's Manual DB2LDIF(8)
NAME
db2ldif - Directory Server script for exporting the database
SYNOPSIS
db2ldif [-Z serverID] {-n backend_instance}* | {-s includeSuffix}* [{-x excludeSuffix}*] [-a outputFile] [-m] [-M] [-r] [-u] [-U] [-C] [-N]
[-E] [-1] [-q] [-h]
DESCRIPTION
Exports the contents of the database to a LDIF file. This script can be executed while the server is still running, except when using the
-r option.
OPTIONS
A summary of options is included below:
-Z Server Identifier
The server ID of the Directory Server instance. If there is only one instance on the system, this option can be skipped.
-n Backend Name
The name of the LDBM database to reindex. Example: userRoot
-s includeSuffix
Specifies suffixes to be included in the LDIF file.
-x excludeSuffix
Specifies suffixes to be excluded from the LDIF file.
-a Output File
The name for the LDIF file.
-m
Minimize the base64 encodings in the exported LDIF file.
-M
Exported ldif is stored in multiple files. These files are named : <instance>_<filename>
By default, all instances are stored in the filename specified by the -a option.
-r
Export replication data(information required to initialize a replica when the LDIF is imported).
-u
Do not export the unique-id attribute.
-U
Requests that the output LDIF is not folded.
-C
Uses only the main database file.
-N
Suppress printing sequential number
-E
Decrypts any encrypted data during export.
-1
Deletes, for reasons of backward compatibility, the first line of the LDIF file that gives the version of the LDIF standard.
-q
Quiet mode. Suppresses output of the script.
-h
Display the usage.
EXAMPLE
db2ldif -Z instance3 -n userRoot -a /LDAP/ldif/export.ldif
db2ldif -s 'dc=example,dc=com' -a /LDAP/ldif/export.ldif -m -E -q
DIAGNOSTICS
Exit status is zero if no errors occur. Errors result in a non-zero exit status and a diagnostic message being written to standard error.
AUTHOR
db2ldif was written by the 389 Project.
REPORTING BUGS
Report bugs to http://bugzilla.redhat.com.
COPYRIGHT
Copyright (C) 2013 Red Hat, Inc.
Mar 5, 2013 DB2LDIF(8)