This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
ry00000's profile picture

[AaP/Suggestion] Can you access the contents of a disk/PocketPC from within a network?

Started by ry00000, 15 June 2016 - 12:05 PM
ry00000 #1
Posted 15 June 2016 - 02:05 PM
The title says it all. Can you access the contents of a disk or Pocket Computer from within a network?
Lupus590 #2
Posted 15 June 2016 - 03:27 PM
Over wireless?

Not with the pre-made programs but you can write a set of programs which can do it.

Over wired?

Disk drives can be used over network cable like any peripheral.
Edited on 15 June 2016 - 01:28 PM
COOLGAMETUBE #3
Posted 16 June 2016 - 03:31 PM
Settup a background-programm on the pocket Computer, wich wait for a rednet message.

Split up the stringstream into Arrays and check it.

For example "ls directory1" then send the directories via rednet as Array. Also do a function for write and read. But also make it secure
ry00000 #4
Posted 17 June 2016 - 10:59 AM
Nope. CoolGameTube, I'm not sure you understand what I'm trying to do.
ry00000 #5
Posted 07 September 2016 - 02:33 PM
Bump: I'm trying to make a disk read-only from within a network.
Tiin57 #6
Posted 07 September 2016 - 02:50 PM
Bump: I'm trying to make a disk read-only from within a network.

Lupus already answered you - it's certainly possible, but there is nothing built-in to do that. This is a perfect example of something that (I feel) should never be included in the ROM, since it's entirely programmable using Lua and doesn't require any workarounds or anything silly.
Lupus590 #7
Posted 07 September 2016 - 05:19 PM
..read-only…
http://www.computercraft.info/forums2/index.php?/topic/10390-making-files-almost-read-only/
KingofGamesYami #8
Posted 07 September 2016 - 05:43 PM
Read-only on a network is probably impossible. You'd have to override fs on every computer connected to the network, which isn't possible without physical access to the computers.

Your best bet is to create a fake file system which requests files from another computer. That computer would not have to accept requests to modify it's files if they are read only.
Tiin57 #9
Posted 08 September 2016 - 02:56 PM
Read-only on a network is probably impossible. You'd have to override fs on every computer connected to the network, which isn't possible without physical access to the computers.

Your best bet is to create a fake file system which requests files from another computer. That computer would not have to accept requests to modify it's files if they are read only.

I figured his best bet would be to expose a set of Rednet endpoints that act like a filesystem, and restrict cable access to the actual disk drive.