Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Unix File Importing
New Posts  All Forums:Forum Nav:

Unix File Importing

post #1 of 7
Thread Starter 
Problem: For my Intro to Programming class we use a Unix Shell program (Putty if you are curious), to access a unix server and we type our programs on a crappy text editor (that doesn't allow copy and pasting) and then compile it using unix. Anyway, is there anyway that I can import a file from my computer, namely a .cpp file typed in a more user friendly editor, into my Unix directory. I have to do this because we use Unix to to turn in our assignments.

I am hoping I can do this nice and easily.
Eowyn
(13 items)
 
  
CPUMotherboardGraphicsRAM
1055T x6 Biostar TA890FXE MSI 465(470)TFII GE 750/1900 G.Skill 2x2GB DDR3 
Hard DriveOSMonitorKeyboard
WD 640AAKS Ubuntu 10.10 2x24" Asus MS Arc 
PowerCaseMouse
610 PC P&C Silencer P182 Logitech Marathon 
  hide details  
Reply
Eowyn
(13 items)
 
  
CPUMotherboardGraphicsRAM
1055T x6 Biostar TA890FXE MSI 465(470)TFII GE 750/1900 G.Skill 2x2GB DDR3 
Hard DriveOSMonitorKeyboard
WD 640AAKS Ubuntu 10.10 2x24" Asus MS Arc 
PowerCaseMouse
610 PC P&C Silencer P182 Logitech Marathon 
  hide details  
Reply
post #2 of 7
Quote:
Originally Posted by Kamakazi
Problem: For my Intro to Programming class we use a Unix Shell program (Putty if you are curious), to access a unix server and we type our programs on a crappy text editor (that doesn't allow copy and pasting) and then compile it using unix. Anyway, is there anyway that I can import a file from my computer, namely a .cpp file typed in a more user friendly editor, into my Unix directory. I have to do this because we use Unix to to turn in our assignments.

I am hoping I can do this nice and easily.
Yes. But after to type it in a C/C++ editor, copy it to notepad to make sure when its opened in Unix that the text it the way it should be without any extra garbage the C/C++ development program might add to the file.

I take it your writing the program at home and then want to put it on the schools Unix machine. Is thats what meant in what I highlighted dark blue?
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
post #3 of 7
Thread Starter 
Yes that is what i meant I type it on my computer in my dorm.
Eowyn
(13 items)
 
  
CPUMotherboardGraphicsRAM
1055T x6 Biostar TA890FXE MSI 465(470)TFII GE 750/1900 G.Skill 2x2GB DDR3 
Hard DriveOSMonitorKeyboard
WD 640AAKS Ubuntu 10.10 2x24" Asus MS Arc 
PowerCaseMouse
610 PC P&C Silencer P182 Logitech Marathon 
  hide details  
Reply
Eowyn
(13 items)
 
  
CPUMotherboardGraphicsRAM
1055T x6 Biostar TA890FXE MSI 465(470)TFII GE 750/1900 G.Skill 2x2GB DDR3 
Hard DriveOSMonitorKeyboard
WD 640AAKS Ubuntu 10.10 2x24" Asus MS Arc 
PowerCaseMouse
610 PC P&C Silencer P182 Logitech Marathon 
  hide details  
Reply
post #4 of 7
Then just copy the file onto a floppy or flash drive then move it over to the Unix machine. The only tough part it finding the flash drive if you don't know where its located at under /dev/
Thats what I've having trouble with now in FreeBSD. Got a portable drive that that has two partitions and I want to add their mount points in /etc/fstab but I cannot figure out their location in /dev/

Just wondering, what type of Unix? Sys V, BSD, SunOS,...
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
BlackMesa
(14 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x6 Gigabyte XFX RF460 16gb G.Skill 
Hard DriveHard DriveOSMonitor
OCZ Vertex2 Sata II Coorsair Force GS Sata III Debian (testing) Shimian 27" 
KeyboardMouse
Filco w/ blue cherries Who needs a mouse? 
  hide details  
Reply
post #5 of 7
Should a USB drive not be located under a serial drive identity?

also, what Desktop Environment are you using (dangerousHobo)? if any.

EDIT: You could always give one of the partitions a label in Xp and use Fdisk -l (or Unix's equiv) to show all of your partitions. The name should appear (i dunno, i haven't use linux in over a fortnight ())
Studio Machine
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Q6600 @ 2.6 Ghz I forget. nVidia 8400 2GB DDR2 
Hard DriveOptical DriveOSMonitor
1x320GB, 1x750GB CD/DVD+-RW Windows Vista Ultimate SP1 & Arch Linux 64bit 19inch Acer X193W 
KeyboardPowerCaseMouse
Logitech UltraSlim Pathetic 350w Cube 2 Quid Bargain Bin Thing 
  hide details  
Reply
Studio Machine
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Q6600 @ 2.6 Ghz I forget. nVidia 8400 2GB DDR2 
Hard DriveOptical DriveOSMonitor
1x320GB, 1x750GB CD/DVD+-RW Windows Vista Ultimate SP1 & Arch Linux 64bit 19inch Acer X193W 
KeyboardPowerCaseMouse
Logitech UltraSlim Pathetic 350w Cube 2 Quid Bargain Bin Thing 
  hide details  
Reply
post #6 of 7
Quote:
Originally Posted by Kamakazi
Problem: For my Intro to Programming class we use a Unix Shell program (Putty if you are curious), to access a unix server and we type our programs on a crappy text editor (that doesn't allow copy and pasting) and then compile it using unix. Anyway, is there anyway that I can import a file from my computer, namely a .cpp file typed in a more user friendly editor, into my Unix directory. I have to do this because we use Unix to to turn in our assignments.

I am hoping I can do this nice and easily.
since you are using putty, you are connecting via ssh. since you have ssh account, you can use the ssh protocol to transfer files, like you would ftp.

you can use filezilla or w/e ftp app you have that supports ssh protocol.

use the same server name, username and password you would like you were using putty.

then connect... then you can transfer files, all self explanitory.

gl hf.
BFG-c2d
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6600 BFG nForce 680i BFG 8800GTS 2gb pny ddr800 
Hard DriveOptical DriveOSMonitor
3x160gb seagate sataII memorex dvdrw GNU Linux Gentoo 2.6.19 Samsung 225BW 22" LCD 
PowerCase
BFG 650W Super LanBoy 
  hide details  
Reply
BFG-c2d
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6600 BFG nForce 680i BFG 8800GTS 2gb pny ddr800 
Hard DriveOptical DriveOSMonitor
3x160gb seagate sataII memorex dvdrw GNU Linux Gentoo 2.6.19 Samsung 225BW 22" LCD 
PowerCase
BFG 650W Super LanBoy 
  hide details  
Reply
post #7 of 7
its funny because i use Putty as well when i program on our schools unix server using VIM, i did manage to do copy and paste. all you have to do, worked for me, i dont know about you, is do the normal ctrl-c then get into ur shell, right click ur mouse and everything should paste onto the screen.
Nov 7 2010
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 930 Asus P6X58D-E XFX Radeon HD 6870 Kingston HyperX DDR3-1600 6 Gig 
Hard DriveOSKeyboardPower
Crucial C300 64 Gig Windows 7 Professional Logitech G15 Corsair TX750W 
CaseMouse
Coolermaster CM690 Logitech G5 
  hide details  
Reply
Nov 7 2010
(13 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 930 Asus P6X58D-E XFX Radeon HD 6870 Kingston HyperX DDR3-1600 6 Gig 
Hard DriveOSKeyboardPower
Crucial C300 64 Gig Windows 7 Professional Logitech G15 Corsair TX750W 
CaseMouse
Coolermaster CM690 Logitech G5 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Unix File Importing