Parsing linux commands through FTP


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Parsing linux commands through FTP
# 1  
Old 08-26-2011
Parsing linux commands through FTP

Hi Techies,

I have made a shell script which stores the output of it in a text file. then i wanted to fetch that text file using windows scheduler in my windows xp desktop which i did successfully using the below mentioned ftp .bat file :
Code:
@echo off
@echo ftp_user>ftp_test.scr
@echo ftp_password>>ftp_test.scr
@echo cd /home/vaspadm/current/.noc/>>ftp_test.scr
@echo get deleteme.txt>>ftp_test.scr
@echo quit>>ftp_test.scr
@ftp -s:ftp_test.scr ftp_server
@del ftp_test.scr

Now just to connect and synchronize all stuff i wanted to knw whether i could parse linux commands through this ftp batch file which could directly initiate the script and fetch data on my desktop

Thanks in advance

gemnian.g

Last edited by Scott; 08-26-2011 at 04:33 AM.. Reason: Code tags, please...
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Parsing special characters from variable commands

Hi, I am fairly new to unix scripting and recently tasked with some reporting scripts. The reporting checks several batch jobs and this is quite iterative. Now I am trying to minimize script effort and maximize reusability as there are only slight nuances in the repetitive tasks. For... (3 Replies)
Discussion started by: joeniks
3 Replies

2. UNIX for Dummies Questions & Answers

Ftp login commands

Hello, I am using ftp on command line. The problem is getting bumped off after 15 minutes of no activity.. I have two options: quit ftp and use the command history of my shell, or stay in ftp and use 'open' command, where I can use the command history saved in the ftp program. Either option... (1 Reply)
Discussion started by: Allasso
1 Replies

3. Shell Programming and Scripting

executing commands through FTP session

Dears, i want to execute unix commands through FTP session those commands like grep XXXXX file name > new file tar new file ..... etc Please let me know how to so thank you (3 Replies)
Discussion started by: faiz
3 Replies

4. Windows & DOS: Issues & Discussions

Can't login to Unix using ftp commands

Hi. I have this issue with an ftp command that I can run successfully using command prompt in Windows but when using a file to run the script unix will always return log in error messages. Here is what I'm doing: In command prompt I'm running this: > ftp -s:c:\load_test_file.scr And my... (4 Replies)
Discussion started by: teposelo
4 Replies

5. HP-UX

not able to upload the pjl commands thru ftp

Hi , By status requests to the printer using the PJL commands like status_read_back there is no answer. The printer itself is functioning well and is printing all requests. Ping, lpstat -t, nslookup is functioning well. The printer model is HP LJ 4200. The printer has been configured as network... (1 Reply)
Discussion started by: amit kul
1 Replies

6. Shell Programming and Scripting

how to print date using ftp commands

Hi friends sftpCmd.txt ----------------- !echo "Getting files from sftp" !echo "----------------" cd /home/msgGoogle/PLATFORM/PROD/MIMUS/outbound/ARCHIVE/invsnap !echo "folder created" !date mget ???050108*.txt output !echo "------------------" !echo "Completed : " !echo... (3 Replies)
Discussion started by: kittusri9
3 Replies

7. IP Networking

ftp dir and pwd commands

Hi, I have a conenction to remote server that I'm sending files too via FTP. The problem I have is that when the file gets delivered it is 0 (zero) size. I've manually connected and logged on. The only command I can successfully execute is pwd. When I do a dir or a put command it will... (7 Replies)
Discussion started by: nhatch
7 Replies

8. UNIX for Advanced & Expert Users

FTP commands in SFTP

Hi, I am in the process of migrating all my FTP data flows into SFTP to make data more secure... I have used many quote site commands in our FTP sesssion. In SFTP i found that there is no option to do such commands. Does any body here know to overcome the current situation. Regards,... (2 Replies)
Discussion started by: Astra
2 Replies

9. Shell Programming and Scripting

script for ftp commands

Hi I need to setup a script to ftp a file from one unix box to another. I have modified the.netrc file, thus I can ftp into another box without being prompted for password. The question I have is, how can I setup a script which would after ftp, will change a directory, issue the bin command, then... (8 Replies)
Discussion started by: ali.merchant
8 Replies

10. UNIX for Dummies Questions & Answers

FTP - Executing Commands

I have written a script to ftp a file from Unix to an NT machine to authenticate ftp login I have added the information into the .netrc file when logged in using ftp the commands are not executed. Does anybody know how to make the command execute once username and password have been provided using... (2 Replies)
Discussion started by: hesmas
2 Replies
Login or Register to Ask a Question
get_desktop_resolution(3alleg4) 				  Allegro manual				   get_desktop_resolution(3alleg4)

NAME
get_desktop_resolution - Finds out the desktop resolution. Allegro game programming library. SYNOPSIS
#include <allegro.h> int get_desktop_resolution(int *width, int *height); DESCRIPTION
Finds out the currently selected desktop resolution. You can use this information to avoid creating windows bigger than the current resolu- tion. This is especially important for some windowed drivers which are unable to create windows bigger than the desktop. Each parameter is a pointer to an integer where one dimension of the screen will be stored. Under some OSes, switching to a full screen graphics mode may automatically change the desktop resolution. You have, therefore, to call this function before setting any graphics mode in order to retrieve the real desktop resolution. Example: int width, height; allegro_init(); ... if (get_desktop_resolution(&width, &height) == 0) { /* Got the resolution correctly */ } RETURN VALUE
Returns zero on success, or a negative number if this information is not available or does not apply, in which case the values stored in the variables you provided for `width' and `height' are undefined. SEE ALSO
desktop_color_depth(3alleg4), set_gfx_mode(3alleg4) Allegro version 4.4.2 get_desktop_resolution(3alleg4)