• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Question for Unix gurus

calbear2000

Golden Member
Ok I know this belongs in the software or OS forum, but I need a really quick answer... I'm stuck at work at 11pm 🙁

There's a machine that I don't have login access to whose /tmp disk is full. I need space on the /tmp disk for my program to run.

I can do this in the Unix prompt:

rsh fhc2000 "ls -l /tmp"

and I see a 3G file that is hogging up all the disk space. I know this is a useless file (ie similar to a core dump) so I can modify without owner's permission. The file is writeable, so the question is how do I shrink the file without logging into that machine? I'd love to be able to just vi the damn thing and remove the billion lines of garbage but I can't

I need something similar to this:
rsh fhc2000 "command_to_write_something_to_this_file /tmp/core"


Any help is greatly appreciated!

 
I tried that, but since I'm not the owner of the file, I couldn't.

I took your clever idea one step further and did this:

rsh fhc2095 "mkdir /tmp/home/"
rsh fhc2095 "ln -s /tmp/VSOUTBAAa29827 /tmp/home/"
rsh fhc2095 "cp ~root/test /tmp/home/VSOUTBAAa29827"

where ~root/test is a dummy file.

This worked! I essentially gave myself ownership of the file by making a soft link. What a hack! 🙂

Thanks

 
Back
Top