I read the script from clipboard:// and write it to a linux ftp server:
#!/home/myaccount/cgi-bin/rebol -c
Rebol []
mywhois: func[thedomain /local whois][
whois: read rejoin [whois:// thedomain "@" "whois.internet.bs"]
parse whois [to "Expiry Date: " thru "Expiry Date: " copy Expiry-Date to newline]
Expiry-Date
]
parse system/script/path [thru "/" thru "/" thru "/" copy domain to "/"]
expiration-date: mywhois domain
info: rejoin ["Expiration of " domain ": " expiration-date]
print info
print "<br>"
print rejoin ["IP Lookup: " read rejoin [dns:// domain]]
print ""
When I chmod this file to 755, the cgi doesn't work, whereas it works when I upload it with a ftp software.