#38 Preview Script Errors on BusyBox

Closed
opened 1 year ago by jhabdas · 0 comments
jhabdas commented 1 year ago

Output from Termux:

$(lsof -nt -i4TCP:$HUGO_PORT)
No command '6836' found, did you mean:
 Command 'w3m' from package 'w3m'

Output of the above command expected to be empty if hugo isn’t running. But it’s not.

Look at switching over to fuser instead and do something like:

fuser 1337/tcp # check
fuser -k 1337/tcp #kill

And enhance the script so it reuses hugo server if already running on port 1313 or 1337.

BusyBox v1.29.1 (2018-07-22 23:20:05 UTC) multi-call binary.

Output from Termux: ``` $(lsof -nt -i4TCP:$HUGO_PORT) No command '6836' found, did you mean: Command 'w3m' from package 'w3m' ``` Output of the above command expected to be empty if `hugo` isn't running. But it's not. Look at switching over to `fuser` instead and do something like: ```sh fuser 1337/tcp # check fuser -k 1337/tcp #kill ``` And enhance the script so it reuses `hugo server` if already running on port `1313` or `1337`. BusyBox v1.29.1 (2018-07-22 23:20:05 UTC) multi-call binary.
jhabdas added the
bug
label 1 year ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
Cancel
Save
There is no content yet.