Solved storing fetch content as shell variable

fred974

Daemon

Thanks: 34
Messages: 1,460

#1
Hi,

I am trying to automate wordpress installation for my jail and I was wondering if anyone please could help me figure this one out..
I curently use
Code:
SALT=$(curl -L https://api.wordpress.org/secret-key/1.1/salt/)
to store the wordpress salt key.
I would like some help doing the same using fetch so i don't have to install pakage that I do not normally use

Thank you
 

chrbr

Aspiring Daemon

Thanks: 229
Messages: 634

#2
Dear fred974,
I have something as
Code:
reply=`/usr/bin/fetch -q -o '-' http://www.somewhere.org/something/interesting`
in one of my scripts for further evaluation. The address is modified.
 
Top