03-19-2009
if [ `hostname` = <server> ]
then
echo `date`
echo Sending file to <another server>
ff="wep_`date +%Y%m%d`"
echo "
user UN Passwd
get $ff
quit
" | ftp -n <server name>
fi
should you use Export command ....let me know......
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I saw a unix shell script in which export command is used like this :
export filename
what is a file exported for ?
thanks
srini (4 Replies)
Discussion started by: sveera
4 Replies
2. 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
3. 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
4. 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
5. 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
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
pax11publish
pax11publish(1) General Commands Manual pax11publish(1)
NAME
pax11publish - PulseAudio X11 Credential Utility
SYNOPSIS
pax11publish -h
pax11publish [options] [-d]
pax11publish [options] -e
pax11publish [options] -i
pax11publish [options] -r
DESCRIPTION
The pax11publish utility can be used to dump or manipulate the PulseAudio server credentials that can be stored as properties on the X11
root window.
Please note that the loadable module module-x11-publish exports the same information directly from the PulseAudio sound server, and should
in most cases be used in preference over this tool.
Use the following command to dump the raw PulseAudio-specific data that is stored in your X11 root window:
xprop -root | grep ^PULSE_
OPTIONS
-h Show help.
-d Read the PulseAudio server credentials currently set on the X11 root window and dump them in a human readable form. This reads the
PULSE_SERVER, PULSE_SINK, PULSE_SOURCE and PULSE_COOKIE properties.
-i Similar to -d, however dumps them in a Bourne shell compatible format so they may be used together with the eval shell command to
set the $PULSE_SERVER, $PULSE_SINK, $PULSE_SOURCE environment variables. Also reads the authentication cookie from the root window
and stores it in ~/.config/pulse/cookie.
-e Export the currently locally used sound server, sink, source configuration to the X11 root window. This takes the data from the
$PULSE_SERVER, $PULSE_SINK, $PULSE_SOURCE environment variables and combines them with the data from ~/.config/pulse/client.conf (or
/etc/pulse/client.conf if that file does not exist). If specific options are passed on the command line (-S, -O, -I, -c, see below),
they take precedence. Also uploads the local authentication cookie ~/.config/pulse/cookie to the X11 server.
-r Removes the configured PulseAudio configuration from the X11 root window.
-D DISPLAY
Connect to the specified X11 display, instead of the default one configured in $DISPLAY.
-S SERVER
Only valid for -e: export the specified PulseAudio server as default to the X11 display instead of the one configured via local con-
figuration.
-O SINK
Only valid for -e: export the specified sink as default sink to the X11 display instead of the one configured via local configura-
tion.
-I SOURCE
Only valid for -e: export the specified source as default to the X11 display instead of the one configured via local configuration.
-c FILE
Only valid for -e: export the PulseAudio authentication cookie stored in the specified file to the X11 display instead of the one
stored in ~/.config/pulse/cookie.
AUTHORS
The PulseAudio Developers <pulseaudio-discuss (at) lists (dot) freedesktop (dot) org>; PulseAudio is available from http://pulseaudio.org/
SEE ALSO
pulseaudio(1), xprop(1)
Manuals User pax11publish(1)