c++ program to fetch files in windows from xshell


 
Thread Tools Search this Thread
Top Forums Programming c++ program to fetch files in windows from xshell
# 1  
Old 05-06-2010
c++ program to fetch files in windows from xshell

hey i'm new at this stuff. i need to write a program in windows. which will fetch files from a unix machine using xshell. please help me with this.
# 2  
Old 05-06-2010
Why do you need to write a program? Especially, why do you have to write a program that uses xshell? All xshell is using is ssh, for which there are programs much, much easier to write scripts with. scp for instance is actually meant for copying files, and connects to the server with the same protocol xshell(or any other ssh terminal) uses. It's available in a standalone windows executable as pscp. You can use it like
Code:
pscp user@host:path/to/remote/file local_fille

to retrieve a file, and
Code:
pscp local_file user@host:path/to/remote_file

to upload one.
# 3  
Old 05-07-2010
Error

i need to write a windows based program.. which will actually be running behind a GUI. user will enter search parameters in the GUI and it will access the shell machine to fetch those files. it's my project. one hint that i got was that i have to write an assembly for this.. any ideas? please help. my first progress report is on 14th of this month!!
# 4  
Old 05-07-2010
So are you saying it does use xshell now, or it doesn't? That 'hint' about assembler is nonsense, nothing in that needs assembler. If this is homework, you need to post this in the homework forum, which has special rules.
# 5  
Old 05-07-2010
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to fetch matched records from files between two different directory?

awk 'NR==FNR{arr;next} $0 in arr' /tmp/Data_mismatch.sh /prd/HK/ACCTCARD_20160115.txt edit by bakunin: seems that one CODE-tag got lost somewhere. i corrected that, but please check your posts more carefully. Thank you. (5 Replies)
Discussion started by: suresh_target
5 Replies

2. Shell Programming and Scripting

Fetch files based on month

Hi All I have a requirement like below.I have always 12 files got generated in my directory called /xx/out/ abc_2014_10_121.xml abc_2014_09_345.xml abc_2014_08_432.xml abc_2014_07_123.xml abc_2014_06_098.xml abc_2014_05_569.xml abc_2014_04_430.xml abc_2014_03_235.xml abc_2014_02_056.xml... (9 Replies)
Discussion started by: chigurupati.dwh
9 Replies

3. UNIX for Dummies Questions & Answers

How to fetch files right below based on some matching criteria?

I have a requirement where in i need to select records right below the search criteria qwertykeyboard white 10 20 30 30 40 50 60 70 80 qwertykeyboard black 40 50 60 70 90 100 qwertykeyboard and white are headers separated by a tab. when i execute my script..i would be searching... (4 Replies)
Discussion started by: vinnu10
4 Replies

4. UNIX for Advanced & Expert Users

Xshell connecting too slow

Hi Guys, Not sure if it is the most appropriate place for this type of question. Facing a strange issue: While ssh'ing a server (HP Ux Itanium) through putty, it works perfectly ok. But if connecting through XShell (using ssh) it takes 4-5 minutes. Traced user authentication process in... (1 Reply)
Discussion started by: amardeep.sidhu
1 Replies

5. UNIX for Dummies Questions & Answers

how to fetch month format files in a file

I have files like pra.01 sra.02 see.03 swc.03 sre.04 after dot it contain month format when ever user type "01" month i have to fetch what are 01 files to come (2 Replies)
Discussion started by: sgoud
2 Replies

6. Shell Programming and Scripting

Launch a windows program from perl script

Hi i wanted to know if any one can give me an example on how to launch a windows program in a perl script. I wanted to open the nmap software on my computer with a perl script, i heard this can be done with the system function. Would the function be in this format: $text =... (1 Reply)
Discussion started by: kingbp
1 Replies

7. UNIX for Dummies Questions & Answers

SSH program to run on Windows

Hey, For a couple of months, I was using SecureCRT which was satisfying all my needs (keyboard-interactive, sftp ...). Its licence got expired and I no longer want to pay for it. Is there any SSH program other than Putty, u would suggest as free or less expensive with a user interface like... (3 Replies)
Discussion started by: royalliege
3 Replies

8. Shell Programming and Scripting

shift files from xshell to windows.

hey i'm new at this stuff. i need to write a program in windows. which will fetch files from a unix machine using xshell. please help me with this. :( (2 Replies)
Discussion started by: tan_army810
2 Replies

9. Shell Programming and Scripting

Runing Shell program in Windows XP

This is my first time to come across about Unix and Shell scsripting. So, I want to practice shell scripting and Unix in my WindowsXp S P2. Bu t i dont know what software sh ould i use for this. And this is for personal Practice only. Please Help me,. (1 Reply)
Discussion started by: mccm
1 Replies

10. Shell Programming and Scripting

ftp files from Unix to Windows through shell program

Hi, I made a shell script to allow user to ftp file to windows shared drive. Here is part of my code within my shell script: /usr/bin/ftpmtc $usr $pswd $jobno Within 'ftpmtc': #ARGUMENT: USER,PASWD,JOBNO,VER,LOG_DATE,$$ $UCB/echo "user $1 $2" > $inst_file $UCB/echo "cd prod" >> $inst_file... (7 Replies)
Discussion started by: whatisthis
7 Replies
Login or Register to Ask a Question