Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: How to run matlab in background on a linux server?
Replies: 6   Last Post: May 3, 2012 6:01 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
isabel

Posts: 1
Registered: 5/3/12
Re: How to run matlab in background on a linux server?
Posted: May 3, 2012 6:01 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Yuheng" wrote in message <ifu0us$i02$1@fred.mathworks.com>...
> I tried a command like this:
>
> nohup matlab linux_try.m 1>std.out 2>err.out &
>
> there is only one line in the file linux_try.m, which is
>
> a = magic(5)
>
> but in std.out there are a lot of 'Warning: Error reading character from command line', and in err.out there are a lot of 'Bad file descriptor'.
>
> Can anybody help me? Thanks a lot


you missed the < to pass the input argument (file name)
nohup matlab < linux_try.m 1> std.out 2> err.out &



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2013. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.