Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Problems with View/Pro and Command

From: holger:rebol at: 12-Sep-2001 10:02

On Wed, Sep 12, 2001 at 12:21:07PM -0400, CRIBBSJ wrote:
> Problem #1: > > I wrote a script that ftp's some files from one of my company's Linux > servers, through our firewall, and to a ftp server on the net. It works > great when I run it from a telnet session on the Linux box, but when I > schedule it through cron, it fails saying it cannot connect to the X display > server. Even though I have no gui (view or vid) commands in my script, it > seems that because I am running it using View/Pro, it is trying to connect to > the display server even though I don't need it to.
Try adding something like export DISPLAY=localhost:0 or setenv DISPLAY localhost:0 depending on which shell you use and where your X server is, to the script run by cron. Connecting to the X server is done automatically to ensure that system/view/screen-face/size is set correctly. That's why you see the error. View/Pro is not really intended for use with non-interactive scripts. That's what Command is for.
> Problem #2: > > This problem actually stems from the first. Since I think the first problem > has to do with that I am using View/Pro, I convinced my boss to cough up > $350 to purchase Command. That way, I could have shell access to run PGP > without having to worry about the interpreter trying to connect to a display > server when I run it from cron. Great idea, right? Well, the script that I > wrote works great on View/Pro, but it bombs out under Command. I get an > error saying that there is some kind of TCP socket listen error when I try to > FTP. I am running this on a Redhat 6.1 box and I am wondering if there is > some kind of problem with Command running on this version of OS.
No. Sounds like your user.r is wrong. You are probably using different settings (for proxy or ftp-passive) for Command than you are using for View/Pro. If you installed Command and View in different places then your user.r might just be in the wrong directory.
> What also makes me mad is that I have spent over $400 recently buying > View/Pro and Command, yet I can't get ANY technical support from RT.
Asking on the mailing list is usually the easiest way. We do respond through feedback as well, and sometimes more quickly, but have fallen a little behind there recently, partly due to vacations. Sorry for that. -- Holger Kruse [holger--rebol--com]