First time here? Check out the FAQ!
answered 8 years ago
To run a single command in Sage, use sage -c "command", for instance
sage -c "command"
$ sage -c "print 2 + 2"
updated 8 years ago
To have Sage just run a single command in Sage, command, use sage -c "command", for instance