Displaying 6 results from an estimated 6 matches for "digitalplatform".
2014 May 11
3
find with exclude directory
Hey all,
I'm trying to do a find of all files with the phrase 'varnish' in the
name, but want to exclude a user home directory called
/usr/local/digitalplatform.
Here's what I was able to come up with:
find / -path '/usr/local/digitalplatform/*' -prune -o -name "*varnish*"
Which results in this:
[root at uszmpwsls014lb ~]# find / -path '/usr/local/digitalplatform/*' -prune
-o -name "*varnish*" | grep digitalplatf...
2015 Aug 25
6
echo password into bash script
...nk I'm going about it incorrectly.
Here's the top part of my script:
#!/bin/bash
pub="~/.ssh/id_rsa.pub"
dps_pass="my_pass"
ssh="/usr/bin/ssh"
scp="/usr/bin/scp"
for i in 10.10.10.2{5,6}
do
echo "xfring key up"
echo $dps_pass | $scp $PUB digitalplatform@$i:
And here's how it executes:
#bash -x deploy_key.sh
+ pub='~/.ssh/id_rsa.pub'
+ dps_pass='nbcuV01P!'
+ ssh=/usr/bin/ssh
+ scp=/usr/bin/scp
+ for i in 10.10.10.2{5.6}
+ echo 'xfring key up'
xfring key up
+ echo 'my_pass'
+ /usr/bin/scp /Users/my_user/.ssh/i...
2015 Aug 25
0
echo password into bash script
...s the top part of my script:
>
> #!/bin/bash
> pub="~/.ssh/id_rsa.pub"
> dps_pass="my_pass"
> ssh="/usr/bin/ssh"
> scp="/usr/bin/scp"
> for i in 10.10.10.2{5,6}
> do
> echo "xfring key up"
> echo $dps_pass | $scp $PUB digitalplatform@$i:
>
>
> And here's how it executes:
>
> #bash -x deploy_key.sh
> + pub='~/.ssh/id_rsa.pub'
> <removed>
> + ssh=/usr/bin/ssh
> + scp=/usr/bin/scp
> + for i in 10.10.10.2{5.6}
> + echo 'xfring key up'
> xfring key up
> + echo 'my...
2015 Aug 25
0
echo password into bash script
...s the top part of my script:
>
> #!/bin/bash
> pub="~/.ssh/id_rsa.pub"
> dps_pass="my_pass"
> ssh="/usr/bin/ssh"
> scp="/usr/bin/scp"
> for i in 10.10.10.2{5,6}
> do
> echo "xfring key up"
> echo $dps_pass | $scp $PUB digitalplatform@$i:
>
>
> And here's how it executes:
>
> #bash -x deploy_key.sh
> + pub='~/.ssh/id_rsa.pub'
> + dps_pass='nbcuV01P!'
> + ssh=/usr/bin/ssh
> + scp=/usr/bin/scp
> + for i in 10.10.10.2{5.6}
> + echo 'xfring key up'
> xfring key up
>...
2015 Aug 25
0
echo password into bash script
...the top part of my script:
>
> #!/bin/bash
> pub="~/.ssh/id_rsa.pub"
> dps_pass="my_pass"
> ssh="/usr/bin/ssh"
> scp="/usr/bin/scp"
> for i in 10.10.10.2{5,6}
> do
> echo "xfring key up"
> echo $dps_pass | $scp $PUB digitalplatform@$i:
Don't try to automate your password like this for scp or other
ssh-related apps. Generate and use a public/private keypair instead and
your script will then be able to connect without prompting for a password.
Peter
2015 Aug 25
1
echo password into bash script
...!/bin/bash
> > pub="~/.ssh/id_rsa.pub"
> > dps_pass="my_pass"
> > ssh="/usr/bin/ssh"
> > scp="/usr/bin/scp"
> > for i in 10.10.10.2{5,6}
> > do
> > echo "xfring key up"
> > echo $dps_pass | $scp $PUB digitalplatform@$i:
>
> Don't try to automate your password like this for scp or other
> ssh-related apps. Generate and use a public/private keypair instead and
> your script will then be able to connect without prompting for a password.
>
>
> Peter
> __________________________________...