Reading in a .dat file from SSH shell command line

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Feb 2006
Posts: 1
Reputation: arvinp is an unknown quantity at this point 
Solved Threads: 0
arvinp arvinp is offline Offline
Newbie Poster

Reading in a .dat file from SSH shell command line

 
0
  #1
Feb 1st, 2006
Hey guys, I'm trying to write a code that reads in a .dat file from the SSH shell command line.

example: java Prog1 xxxx

so from the shell command line i want it to run Prog1 then read in the contents of the xxxx file

All the code I look at online shows me how to write the code using an existing file... I want to write the code taking in an entirly new file from the command line... after this I simply just want to print out the contents of the dat file after is has read it in....

example:
this is all from the SSH shell command line

java Prog1 xxx.dat
"contents of the xxx.dat go here"

thanks for the help
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 4043 | Replies: 0
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC