Faculty of Engineering and Mathematical Sciences 
Not logged in (login)

help3002


This forum is provided to promote discussion amongst students enrolled in Computer Networks (CITS3002).
 
Before posting a question here, you may like to read the article How To Ask Questions The Smart Way.

If just starting the project, please search this forum for related topics (from Week-8) before posting new questions.
 
Options:
RSS cloud
Jump to:

Getting plot-to-html.sh for labsheet 2

1 of 652 articles shown, currently 2 other people reading this forum.
photo
From: Edward A.
Date: Tue 24th Mar, 12:26pm
Actions: 
        Login-to-reply
Everyone else has probably long completed this labsheet. But if there are any stragglers like me who are getting the following error when attempting to run plot-to-html.sh on Ubuntu:

./plot-to-html.sh: 26: ./plot-to-html.sh: Syntax error: "(" unexpected
The solution is to replace the shebang on the first line of the file /bin/sh with the line #!/bin/bash. Otherwise Ubuntu will use dash instead of bash as the shell for executing the file which causes some kind of error. I'd be interested to know why the error occurs and what differences exist between the two shells if anyone has any idea.

Related articles

Getting plot-to-html.sh for labsheet 2 (all 9) RSS
├─ THIS   Tue 24th Mar, 12:26pm, Edward A.
├─ reply 1   Tue 24th Mar, 12:45pm, Christopher M.
├─ reply 2   Tue 24th Mar, 3:08pm, Edward A.  O.P.
├─ reply 3   Tue 24th Mar, 4:07pm, ANONYMOUS
├─ reply 4   Wed 25th Mar, 3:54am, Christopher M.
├─ reply 5   Wed 15th Apr, 2:26pm, Kirra F.
├─ reply 6   Wed 15th Apr, 2:29pm, Kirra F.
├─ reply 7   Thu 16th Apr, 1:55pm, Edward A.  O.P.
└─ reply 8   Mon 20th Apr, 2:45pm, Christopher M.
This Page


Program written by: [email protected]
Feedback welcome
Last modified:  8:27am May 24 2020