Thread: onyx help

  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    41

    onyx help

    im writing code in a gcc compliler under a putty server i believe its called onyx. i have been needing help with my code and it would be so much easier if someone can tell me how to copy my code from onyx and post it to this forum so i can get the help i need.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    What exactly is a "putty server"? I use a SSH client named PuTTY, but I was not aware that there was a corresponding server. But what exactly is stopping you from copying the code?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    I'm thinking PuTTY is the program he's using to connect to a machine (server, maybe) called onyx somewhere on his campus. I haven't used PuTTY -- does it act like a dos box (making it hard to copy/paste out of)?

    (And even if you have the file stored on the other machine, can you not use some sftp client to get it off that machine onto yours?)

  4. #4
    Registered User
    Join Date
    Mar 2010
    Posts
    41
    Quote Originally Posted by tabstop View Post
    I'm thinking PuTTY is the program he's using to connect to a machine (server, maybe) called onyx somewhere on his campus. I haven't used PuTTY -- does it act like a dos box (making it hard to copy/paste out of)?

    (And even if you have the file stored on the other machine, can you not use some sftp client to get it off that machine onto yours?)
    it is like a dos box and im so used to windows that copying and pasting just isnt as easy. i can highlight my code and right click the mouse and it copies the highlighted part to the area of where the cursor is i just cant find anything on how to copy the screen and paste it to windows

  5. #5
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by gloworm
    i can highlight my code and right click the mouse and it copies the highlighted part to the area of where the cursor is i just cant find anything on how to copy the screen and paste it to windows
    1. On the server, open the source file in a text editor, or use cat.
    2. Select the code displayed in the command prompt, and press CTRL + C.
    3. Paste the code into an editor of your choice on your local computer.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  6. #6
    Registered User
    Join Date
    Mar 2010
    Posts
    41
    Quote Originally Posted by laserlight View Post
    1. On the server, open the source file in a text editor, or use cat.
    2. Select the code displayed in the command prompt, and press CTRL + C.
    3. Paste the code into an editor of your choice on your local computer.
    lol OMG i cant believe how easy that was. Like i said im new. And for some odd reason im making everything harder than it is but i have my code posted now so someone should check it out and HELP me. Its under blackjack
    thank you so much for your patience with the new guy lol

  7. #7
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    You're welcome
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  8. #8
    Registered User NeonBlack's Avatar
    Join Date
    Nov 2007
    Posts
    431
    If you have SSH access, it's likely that you have sftp access as well. Next time, instead of cat'ing the code and copy pasting it, you can just download the files onto your own machine.
    I think putty comes with a program called psftp that you can use to do this.
    I copied it from the last program in which I passed a parameter, which would have been pre-1989 I guess. - esbo

  9. #9
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    It can be troublesome to go through the process of downloading the entire file just to copy one portion of it when you already have it displayed. On the other hand, it may be easier to code on the local computer, and then upload as needed.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Tags for this Thread