PLEASE NOTE: the upgrades to this server, secure.csse.uwa.edu.au, have not yet been completed.
Hopefully the changes will be completed on THURSDAY 8th December.
Web-based programs, such as csmarks, cssubmit, and the help fora, will be unavailable at some time on Thursday 8th.
  It's UWAweek 49

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

Displaying the 4 articles in this topic
Showing 4 of 919 articles.
Currently 3 other people reading this forum.


 UWA week 36 (2nd semester, mid-semester break) ↓
SVG not supported

Login to reply

👍?
helpful
1:08pm Thu 8th Sep, ANONYMOUS

Good Afternoon Christ, I am using for loops in my main functions to check for validity of time.h variable of month to check that the input month is not a null byte. Although my functions compile, they don't seem to run (even when I just try to run one function at a time), and instead get suspended in terminal, like so "zsh: suspended ./estimatecron 8 crontab.txt estimate.txt" I suspect that this is something to do with the while loop being infinite, but even when I introduce a break, I get the same result. Are there other factors that could influence this suspension of the program? Thank you 💅


SVG not supported

Login to reply

👍?
helpful
2:59pm Thu 8th Sep, Christopher M.

ANONYMOUS wrote:
> Good Afternoon Christ,
Just Chris will be fine.
> I am using for loops in my main functions to check for validity of time.h variable of month to check that the input month is not a null byte. Although my functions compile, they don't seem to run (even when I just try to run one function at a time), and instead get suspended in terminal, > > like so "zsh: suspended ./estimatecron 8 crontab.txt estimate.txt"
This looks like you are *suspensing* the execution of your running program by typing Control-Z. If you wish to interrupt (terminate) a running program, the correct key sequence is Control-C. The message is being reported by your shell, zsh, and not by your program or the operating-system directly. Nothing to do with your while loop, whether it's an infinite loop, or otherwise.


SVG not supported

Login to reply

👍?
helpful
3:23pm Thu 8th Sep, ANONYMOUS

Thank you for that clarification, I wanted to know more why this type of message is being returned rather than how to escape the suspension from my shell. I fit is not pointing to anything to do with the while loop what would other causes of this error be? Thank you.


SVG not supported

Login to reply

👍?
helpful
3:28pm Thu 8th Sep, Christopher M.

ANONYMOUS wrote:
> Thank you for that clarification, I wanted to know more why this type of message is being returned rather than how to escape the suspension from my shell. I fit is not pointing to anything to do with the while loop what would other causes of this error be?
It's not an error message, just an 'announcement' printed by your zsh that the execution state of your process has changed. There's an explanation of what's happening (in the case of vim) here: [help2002] The message is not being returned; your running process is suspended (no longer running) and you should see the next shell prompt printed on the screen. It really suggests (to me) that you're typing Control-Z while your program is running.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  1:17AM Sep 14 2022
Privacy policy