RE: [LUAU] Windows shortcut equivalent in Linux
Thanks to everyone who suggested ideas. I haven't gotten it working yet, but now I have pointers in the right direction... Thanks, Vikram -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vince Hoang Sent: Tuesday, May 18, 2004 5:34 PM To: Linux/Unix Advocates/Users Hawaiian community discussion list Subject: Re: [LUAU] Windows shortcut equivalent in Linux On Tue, May 18, 2004 at 02:32:55PM -1000, Vikram Khurana wrote: > The reason I can't do cd ~ is because it may or may not be in the home > directory. > Here is why. The way I intend to distribute this program is by zipping up > the directory tree which looks like > > /Parse/Linux/ > /Parse/Windows/ > /Parse/123.dat > > Now the user could save this anywhere they want. Now in Win I can tell > people to create a shortcut to //Parse/Windows/ executable> & place it in any folder they want. The 123.dat file is read > relative to the executables. > > How do I do the same in Linux? You mean "How do I do this in perl?" Use readlink(). Create the symlink in your user's path. In your perl code, add logic to read the symlink with readlink() and then strip off everything accept the base path. As a bonus, grab your present working directory with $ENV{PWD}. Now you have variables that tell you about both directory trees that you need access to, and can use chdir() at will. -Vince ___ LUAU@lists.hosef.org mailing list http://lists.hosef.org/cgi-bin/mailman/listinfo/luau
[LUAU] The file that would not die...
Aloha to all from Kauai I have a problem deleting a file. I play quake3 online and I think someone has found an exploit in networked quake3. The first time this happened, my game configuration file was deleted. Then today, the configuration file was somehow modified to make it inaccessible even to root! The game binary was also modified in this fashion. When I try to do a chown, chgrp, ls, or rm, I get something like " rm: cannot remove `pak0.pa3': Permission denied ". I can move the directories but can't delete the files. I have a reiser fs on Slackware. I also have RedHat on another partition so I booted RedHat and mounted the Slackware partition but this produced the same result. I moved the inaccessible files and restored the game files with no problems. I would like to just delete these files. Has anyone experience with this sort of problem? Thanks Kilauea
Re: [LUAU] The file that would not die...
You don't need to own or have write permission on the file, but you do need to have write permission to the directory its in. Make sure the directory that has it is at least drwx--. If that's not your problem, try running fsck on the (unounted) partition. -Eric Hattemer kilauea wrote: Aloha to all from Kauai I have a problem deleting a file. I play quake3 online and I think someone has found an exploit in networked quake3. The first time this happened, my game configuration file was deleted. Then today, the configuration file was somehow modified to make it inaccessible even to root! The game binary was also modified in this fashion. When I try to do a chown, chgrp, ls, or rm, I get something like " rm: cannot remove `pak0.pa3': Permission denied ". I can move the directories but can't delete the files. I have a reiser fs on Slackware. I also have RedHat on another partition so I booted RedHat and mounted the Slackware partition but this produced the same result. I moved the inaccessible files and restored the game files with no problems. I would like to just delete these files. Has anyone experience with this sort of problem? Thanks Kilauea ___ LUAU@lists.hosef.org mailing list http://lists.hosef.org/cgi-bin/mailman/listinfo/luau