View StackScript Logs?

I have a stackscript which for some reason is not completing successfully. Is there a way to view the output of the stackscript?

Thank You,


1 Reply

I've always included a bit to redirect the scripts output to a file, then restore stdout and stderr afterwards. Otherwise you won't be able to login from the console :)

Save stdout and stderr

exec 6>&1

exec 5>&2

Redirect stdout and stderr to a file

exec > /root/StackScript.out

exec 2>&1


Restore stdout and stderr

exec 1>&6 6>&-

exec 2>&5 5>&-


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct