File Inbound/Outbound shell script(ksh)


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers File Inbound/Outbound shell script(ksh)
# 1  
Old 04-19-2013
File Inbound/Outbound shell script(ksh)

URGENT

---------- Post updated at 04:26 AM ---------- Previous update was at 04:23 AM ----------

(I could not post I didn't know why so I need to put the contents via reply, sorry)

Hi all Smilie,

I am a newbie of Unix shell script and I was assigned the work from user that I need to initiate the shell script file proceeding the following tasks;

1) Outbound
It will export the files in this directory from SAP(Unix) at path: xxxxxxxxx1 to windows machine (PC Server) at patch: yyyyyyyyyy1

and

2)Inbound
Fetch the data from PC Server(Windows) at path: yyyyyyyyyyyyyyyyy2 to make it processed in SAP(Unix) at path: xxxxxxxxxxxxxxxxxxxx2

thx for any help SmilieSmilieSmilie

Moderator's Comments:
Mod Comment edit by bakunin: please! I just cleared out half a ton of superficial COLOR- FONT- SIZE- and whatnot-tags. Your cause must be really really urgent if you have the time to decorate your text with more formatting code than the actual text is long.

Last edited by bakunin; 04-19-2013 at 10:21 AM..
# 2  
Old 04-19-2013
Quote:
Originally Posted by gogkub
URGENT
I know, it is "urgent", but please take the time to read our rules. You might notice something regarding the usage of this word.


Quote:
Originally Posted by gogkub
1) Outbound
It will export the files in this directory from SAP(Unix) at path: xxxxxxxxx1 to windows machine (PC Server) at patch: yyyyyyyyyy1
What do you mean by "patch"? Is this a typo for "path"?

Quote:
Originally Posted by gogkub
Inbound
Fetch the data from PC Server(Windows) at path: yyyyyyyyyyyyyyyyy2 to make it processed in SAP(Unix) at path: xxxxxxxxxxxxxxxxxxxx2
That depends on which file transfer mechanism your system supports: ftp? sftp? scp? rcp? rsync? The list can easily be continued.

I suggest you explain how you would do the task by hand, than it will be easy to explain how this can be put into a script.

I hope this helps.

bakunin
# 3  
Old 04-20-2013
I mean "path" not "patch" sir !

and sorry because I copied it from the outlook inbox and pasted it into the webboard carelessly, shame on me but the next time I will try to post the topic carefully Smilie

and I use sftp for this task.

Thanks for replying
# 4  
Old 04-21-2013
Still not clear what you want to achieve. Are there reasons why you don't just run the sftp manually/interactively for the two files/directories you mentioned? What be the processes you alluded to?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to track Inbound Outbound connections to PID?

I have a Application Server process that hosts my application web & EJB and JMS and Database connectios etc. Using the PID what is the best way to find out the Inbound connection sockets i.e those parties that connect to my server process on different ports numbers and Outbound connection... (2 Replies)
Discussion started by: mohtashims
2 Replies

2. Ubuntu

How to lock a file through UNIX KSH shell script?

I wrote two shell scripts in UNIX that renames the same file and scheduled them at the same time. The following are the steps that I followed:- 1. I wrote 2 scripts named s1.sh and s2.sh, both trying to add “exec_” prefix to the name of the files present in a folder i which already don't start... (4 Replies)
Discussion started by: piuli
4 Replies

3. UNIX for Dummies Questions & Answers

Shell script to collect inbound connections

Hi Kindly provide me shell script on server to collect inbound connections, using port number on Linux. (4 Replies)
Discussion started by: adminhelp
4 Replies

4. IP Networking

squid proxy: one NIC for inbound & one NIC for outbound?

I am new in squid proxy. My question is how to (and if it's necessary) to set one NIC for inbound traffic (http requests) and one NIC for outbound traffic (http answers)? Thank you in advance! (4 Replies)
Discussion started by: aixlover
4 Replies

5. Shell Programming and Scripting

how to execute ksh simple shell script without creating .sh file

please help me to execute a simple shell script like for i in `ls echo $i done . i dont want to create a new sh file to execute it. Can i just type and execute it ? because I always this kind of simple for loops . Please help . Thanks (7 Replies)
Discussion started by: Sooraj_Linux
7 Replies

6. Shell Programming and Scripting

Unzip the input file using shell script (ksh)

Hi, I need help in unziping input file through shell script. I had written script, which checks for input file extention. If Extension is "zip" or "gz", then I want to do unzip/uncompress that file. Caould you please let me know that, How to unzip a file through shell script (ksh). Thanks... (16 Replies)
Discussion started by: Poonamol
16 Replies

7. UNIX for Dummies Questions & Answers

Outbound file will be routed to new server

Hi, ---------- Post updated at 04:12 AM ---------- Previous update was at 04:09 AM ---------- This is the scripts.. Date=`date +"%m/%d/%y %H:%M:%S "` echo "Run on $Date" echo "Run on $Date" >&2 # Setting Variables PassDir=$PS_HOME/autosys/pass # Location of the... (0 Replies)
Discussion started by: sonja
0 Replies

8. Shell Programming and Scripting

Solaris KSH shell script to copy all lines from one file to another

Hello, more of a windows wscript guy. However I took a new position that requires me to support some solaris servers. So... issue is that I need to copy all lines from a file to a temporary file and then copy them back into the original file starting at line 1. Reason I need to do this is... (5 Replies)
Discussion started by: ZigZaggin
5 Replies

9. Shell Programming and Scripting

KSH script to run other ksh scripts and output it to a file and/or email

Hi I am new to this Scripting process and would like to know How can i write a ksh script that will call other ksh scripts and write the output to a file and/or email. For example ------- Script ABC ------- a.ksh b.ksh c.ksh I need to call all three scripts execute them and... (2 Replies)
Discussion started by: pacifican
2 Replies
Login or Register to Ask a Question