Support of shell scripts as attachments to Blog entries
LQ Suggestions & FeedbackDo you have a suggestion for this site or an idea that will make the site better? This forum is for you.
PLEASE READ THIS FORUM - Information and status updates will also be posted here.
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.
Support of shell scripts as attachments to Blog entries
How come the LQ Attachment Uploader doesn't support shell scripts, in particular in blog entries? Since it doesn't, I have to keep updating the link to my Linux Kernel Build Script every day, since the site it is hosted on autogenerates the links!
The attachment uploader filters by filetype (based on extension) so if you want to attach a shell script, you must give it's name a .txt extension. Even though this extension has no bearing on whether or not the script will run, you might add a note to the blog entry, or to the script's #comments, telling people they can/should rename the file to 'whatever.sh' or simply 'whatever', rather than 'whatever.txt' if they wish.
Even a script with no extension will then require a .sh or .txt extension added to it in order to upload. I don't really know how most people name their scripts, but I don't always use a .sh extension for mine.
For the record, since .txt files are allowed by the uploader, I think it would be OK to put a provision for .sh files too (Jeremy, what say you?) since they are merely text files anyway.
For the record, since .txt files are allowed by the uploader, I think it would be OK to put a provision for .sh files too (Jeremy, what say you?) since they are merely text files anyway.
Agreed, and I'd add .patch/.diff files. (I had to upload a patch as .txt today and found this thread because I was about to start one of my own asking for the same thing.) What would be better is to run file on it (or equivalent) to check by magic rather than extension. Either way, people are going to want to upload non-.txt text like c, sh, and patches a lot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.