scsh-users
[Top] [All Lists]

Permission denied?

To: scsh-news@zurich.ai.mit.edu
Subject: Permission denied?
From: quixote72@hotmail.com (Pedro Pinto)
Date: 17 Jul 2002 14:29:20 -0700
Organization: http://groups.google.com/
Hi there,

I've been playing with this wonderful shell on a Windows 2000
box using the latest version of cygwin and I found a problem 
when trying to launch two windows consoles (see appended
code). While I succeed in the first try the second gives me 
the following:

Error: 13
       "Permission denied"
       #{Procedure 12547 (%open in scsh-level-0)}
       "/var/tmp/13280"
       2561
       384
 

Any ideas?

Thanks in advance,
-pp

;;; this is somewhat convoluted but it allows us to set
;;; the console title and to actually pass arguments to
;;; the spawned process
(define (launch-windows-console exe args)
  (let ((cCommand (string-append "start \"" exe "\" " exe " " args "\nexit\n")))
    (run (cmd) (<< ,cCommand))))
  
;; this works
(launch-windows-console "dir" "")

;; this will cause the above Permission denied error
(launch-windows-console "dir" "")

<Prev in Thread] Current Thread [Next in Thread>