ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When i change some code in my script and save it, the computer always runs the old script as if i didn't save the file. Only when i save it to another name it works. How can i fix that problem?
Some basic information that I think you should have included in your post:
What distro?
What script language?
What editor are you using?
How are you calling the script?
Some basic information that I think you should have included in your post:
What distro?
What script language?
What editor are you using?
How are you calling the script?
I think i has something to do with the file getting stucked in the cache of my RAM and doesn't get refreshed. It's on a debian distro, it happends to al kinds of script languages. The code is right that's not the problem cause sometimes it does work. I'm running the code on a compute cluster (several servers working as one in a grid engine)
Sometimes when I'm running code on an NFS client, I notice that updated versions of shared libraries aren't being used - every time I've noticed it, doing a quick "ls /path/to/libdir" or "ls libname.so" does the trick (I assume because it's forcing the system to see if the file handle is stale). Maybe you could try making a simple script that lists/cats the script before executing it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.