Ask coding questions

← Back to all posts
bash
Bunnytoes

I want to make a bash script so if you run it, it will join a room, but also if I go to shell I can still pick a room. the code I use to run it is javac GroupChat.java then java GroupChat 239.00.0 1234 239.00.0 is multicast host and 1234 is the port

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
Bunnytoes
Comments
hotnewtop
Coder100

use read

note replit only hosts 0.0.0.0

Bunnytoes

@Coder100 but when I do it, I can do 239.00.0

Bunnytoes

@Coder100 put that in the bash file and use .replit to run the bash code?

Bunnytoes

@Coder100 thank you

Coder100
  1. yes
  2. np @Bunnytoes
Bunnytoes

@Coder100 can you help me, I tested this with a friend, but as of now it won't enter to socket and I can't print the name, I used System.getenv("REPL_OWNER"); for the name

Coder100

@Bunnytoes what ip?

Bunnytoes

@Coder100 239.00.0 and port 1234 it might be fixed, but I can't test it