On Thu, Sep 18, 2008 at 06:49:49AM +0100, AR Williamson wrote: > Is there no one that can help? I have tried IRC but thats a bit of a > ghost town. > > Can func handle arbitary scripts? All kinds of simple commands work fine for me. Does the script have a proper shebang line at the start of the file? i.e.: #!/bin/sh "Exec format error" usually means that you're trying to execute a file which is in a format that the kernel doesn't know about. Possibly your shebang lines refers to a script rather than an executable? What is the first line? Do you get the same result from running a very simple shell script such as: #!/bin/sh echo "foo" Does it work if you use the command: # func @passthru call command run "bash /opt/mf/update.sh" (replacing bash with the appropriate executable for your script)? I don't know why your "ls" is failing, from the error it sounds like the command is returning output which is invalid XML. What do you get if you run "ls -l /opt/mf" locally? Or on a directory not under /opt? > ================================= > All, > > I have successfully setup a func machine and can happily call simple > commands. > > # func @passthru call command run "df -h" > > > operates beautifully. > > However i get into problems very quickly when i try to run anything > 'real'. for example i have shell scripts sitting on my instances that > will do various things, but i get errors > > > # func @passthru call command run "/opt/mf/update.sh" > ('1.2.3.4', > ['REMOTE_ERROR', > 'exceptions.OSError', > '[Errno 8] Exec format error', > > > infact, even a basic "ls -l" command dies. > > > # func @passthru call command run "ls -l /opt/mf" > ('domU-12-31-39-00-B0-03', > ['REMOTE_ERROR', > 'xml.parsers.expat.ExpatError', > 'not well-formed (invalid token): line 10, column 55']) > > > So what on earth am i doing wrong here? Can't i even trigger remote > shell scripts? or is there a special way i have to write these scripts > to do their thing? > > thanks > > a > > _______________________________________________ > Func-list mailing list > Func-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/func-list -- Jonathan Barber High Performance Computing Analyst Tel. +44 (0) 1382 386389 _______________________________________________ Func-list mailing list Func-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/func-list