Project

General

Profile

« Previous | Next » 

Revision 3160

Added by Jing Tao almost 18 years ago

Add the option in wget and get cookie work.

View differences:

lib/buildIndex.sh
21 21

  
22 22
#login to metacat
23 23
loginurl="$metacatURL?action=login&username=$username&password=$password"
24
`wget -q -O - --save-cookies cookies $loginurl`
24
wget -q -O - --save-cookies cookies --keep-session-cookies "$loginurl"
25 25

  
26 26
suffix="?action=buildindex"
27 27
metacatURL="$metacatURL$suffix"
......
52 52
	    if [ $index -eq $length ]
53 53
	    then
54 54
	       echo "here is url $metacatURL"
55
	       `wget -q -O - --load-cookies cookies $metacatURL`
55
	       wget -q -O - --load-cookies cookies "$metacatURL"
56 56
	       index=0;
57 57
	       metacatURL="$1$suffix"
58 58
	    fi
......
63 63
if [ $index -ne 0 ]
64 64
then   
65 65
    echo "here is url $metacatURL"
66
    `wget -q -O - --load-cookies cookies $metacatURL`
66
    wget -q -O - --load-cookies cookies "$metacatURL"
67 67
fi
68 68

  
69 69
exec 0<&3

Also available in: Unified diff