Scripts and tools useful to ACM at UCR members. Go to the Downloads page to grab a tarball or zipball of this repo. Remote Access to the CSIF. You will need secure shell (ssh) and secure file transfer protocol (sftp) software to communicate with the CSIF. For Windows, PuTTY is a free ssh program, and WinSCP3 is a free sftp program with a GUI. If you find any bugs in any of these scripts, please describe the nature in an email addressed to [email protected]. remote_printingGiven a file as a command line argument, the ucr_print bash script will print that file to one of the lab printers in WCH. This script is meant to be used from your own computer. You do not need to be on campus for this to work, you only need to have access to bell.cs.ucr.edu. You need to add the following lines to your ~/.ssh/config file (if you do not have one, make it) on the computer you will be running the script on. Make sure to change the user to whatever your cs login is. Seriously, don't be trying to log in as me. Note this will allow you to type in ssh bell from now on rather than ssh [email protected], which is a useful trick in of itself Once you have your SSH config set up, syntax for the command is as follows. If PRINTER_NAME is not specified, then kilop is used (which is the printer inside of the ACM lab). Below are some example uses of the script. Notice when printing a PDF file you will get a conversion message. You can safely ignore that message, but know that the program pdf2ps is being used to convert your file to postscript, so if you find that it's not printing out correctly, that program is likely to blame. Also note that you will have to enter your password each time you want to print. cpp_filterWhen writing a C++ program, you'll often run into some pretty ugly errors due to templating. For example, if you try to compile the following C++ program, you'll get some pretty ugly errors. And here are the errors. That's a lot of lines for the error 'you can't print out a void value.' Wouldn't it be nicer if that error output was a little nicer? Well when I compile that using my setup (which uses the C++ filter I'm about to show you), I get this... It's not 'you can't print out a void value' but it does cut down on the ridiculous spam that really isn't any use to me. The reason it shows this rather than the previous error messages, is because when I type in Enough build up though, to get this working, just copy everything in the cpp_filter directory into your And that's it! Now every time you run g++ you'll actually be executing gfilt. Here's a series of commands you can paste into your terminal to accomplish the above: Note that gfilt, by default, displays the results of your compilation through the less program (which means you can scroll up and down if you have long error messages). Hit q to exit the less program (you'll know what this means, if you don't already, once you compile something). Join GitHub todayGitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together. Sign up![]() Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. By clicking âSign up for GitHubâ, you agree to our terms of service and privacy statement. Weâll occasionally send you account related emails. Already on GitHub? Sign in to your account Commentscommented Apr 16, 2015
commented Apr 16, 2015
commented Apr 19, 2015
commented Apr 20, 2015
commented Apr 20, 2015![]()
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
0 Comments
Leave a Reply. |