Faceless Posted February 9, 2012 Report Share Posted February 9, 2012 Hi everyone,I'm fairly new to UNIX and I'm having some problems with my programs. I wrote a program in C that would take input from a file and strip it of its comments. Now when I try to run the command:q1 < testFilesin my terminal, it says "q1: command not found". q1 is the name of my program I wrote in C, I believe this is called input redirection. I've been searching google and trying to make sense of this for the past hour but to no avail. My professor says he uses the Bourne shell but that was of no help to me. It works on the computers we have at university, just not on my home linux computer. I'm running XFCE just like my school does as well, this is really starting to annoy me.If anyone has any insight on this it would be greatly appreciated as I have been going absolutely nowhere on this so far.Thanks! Quote Link to post Share on other sites
baker7 Posted January 16, 2013 Report Share Posted January 16, 2013 (edited) On 2/8/2012 at 9:36 PM, Faceless said: Hi everyone, I'm fairly new to UNIX and I'm having some problems with my programs. I wrote a program in C that would take input from a file and strip it of its comments. Now when I try to run the command: q1 < testFiles in my terminal, it says "q1: command not found". q1 is the name of my program I wrote in C, I believe this is called input redirection. I've been searching google and trying to make sense of this for the past hour but to no avail. My professor says he uses the Bourne shell but that was of no help to me. It works on the computers we have at university, just not on my home linux computer. I'm running XFCE just like my school does as well, this is really starting to annoy me. If anyone has any insight on this it would be greatly appreciated as I have been going absolutely nowhere on this so far. Thanks! Good Afternoon Try this: you may have to chage the mode (chmod u+x q1) because if this file is executable file, it will not run without being Executable. Second, when I have to run an executable, I have to use a ./programname to get it to run. so you should try to do ./q1 <testFiles . and see what happpens Let me know if this works for you Brian Edited April 19, 2016 by baker7 correction of information Quote Link to post Share on other sites
Spanish to English transla Posted January 5 Report Share Posted January 5 Edward Aszard Rasberry Net WorthHere is the detail about Edward Aszard Rasberry Net Worth, Biography, Age, Career, Affairs, and much more. Edward Aszard Rasberry was born on September 16, 2016. and he is currently seven years old. Quote Link to post Share on other sites
bestbuyhow Posted January 14 Report Share Posted January 14 https://www.bestbuyhow.com/what-do-the-fitbit-symbols-mean/In this article we will show the detail Fitbit symbols mean. A few of the most feature-rich wearables on the market are available from Fitbit. Quote Link to post Share on other sites
materound Posted August 3 Report Share Posted August 3 Here is the detail of Mate Round. Mate Round is A place where meaningful connections start. Join our vibrant community to meet like-minded individuals who are ready to embark on a journey of love and companionship. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.