Using concatination for commands


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Using concatination for commands
# 1  
Old 11-13-2008
Using concatination for commands

I would like to know a way that we can exec.......some thing like this from the prompt

for EG when we type ftp then we could got ftp> prompt and all the ftp related commands would execute instead i need to use the ftp commands like get put from the normal user prompt it self

somethinmg like ftp | get.........( i know this way it wont work, but this is the scenario where i looking to use in the scripts.
# 2  
Old 11-13-2008
here document:
Code:
ftp -n <<EOF
open somenode
username pswd
put somefile
bye
EOF

Note: the last EOF has to be in column 1
# 3  
Old 11-13-2008
hi should i use this a script to do the put operations only. can i apply this logic to any thing, i mean the basic application that i want to use is gnuplot and inside this i want to use the plot command. where the plot command has a syntax to follow.

please advice
# 4  
Old 11-14-2008
You can run any program that interacts with the user and accepts a sequence of commands or answers. YOu just have to know what the commands are ahead of time.
# 5  
Old 11-16-2008
Quote:
Originally Posted by pingnagan
hi should i use this a script to do the put operations only. can i apply this logic to any thing, i mean the basic application that i want to use is gnuplot and inside this i want to use the plot command. where the plot command has a syntax to follow.

please advice
will it be supported by your ftp session if YES then you can use gunplot or whateverSmilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Ls commands

So I need a way to list all files that contain 4 letters. Also separately I need to find a way to list all files with l or n as the third letter of the name. I need to use the ls command and/or grep/egrep. Any help would be a appreciated. (2 Replies)
Discussion started by: muttfacejohnson
2 Replies

2. Shell Programming and Scripting

Problem in Concatination of string in bash scripts containing back slashes.

My script is as follows: #!/bin/bash STR1="test" echo $STR1 STR2="/bldtmp/"$STR1 echo $STR2 STR3=$STR2'/tmp' echo $STR3 output i am geting ---------------- test /bldtmp/test /tmptmp/test but my need is: ------------------ test /bldtmp/test (1 Reply)
Discussion started by: dchoudhury
1 Replies

3. UNIX for Dummies Questions & Answers

help with some commands

Hi! i'd like from someone to explain me 'what is what' from these parts of code if it's possible.i'd like to understand them and their usage: 1) sed '3d' filename 2) sort –t: +0 -1 /etc/passwd and also this: tr ‘’ ‘ ‘ < filename thank you! (11 Replies)
Discussion started by: strawhatluffy
11 Replies

4. AIX

HACMP: difference between 'cl' commands and 'cli' commands

Hi all, I'm new in this forum. I'm looking for the difference between the HACMP commands with the prefix "cl" and "cli". The first type are under /usr/es/sbin/cluster/sbin directory and the second are under /usr/es/sbin/cluster/cspoc directory. I know that the first are called HACMP for AIX... (0 Replies)
Discussion started by: peppix
0 Replies

5. Homework & Coursework Questions

PLEASE HELP WITH THESE COMMANDS

Given a directory on a Linux or on Unix file system that contains one or several text files, how would you Find the last 5 lines with the word “HELLO” in a single file Find the line number of the first line with the word “HELLO” in every file Find all lines with the word “HELLO” in all files (1 Reply)
Discussion started by: coppercat
1 Replies

6. UNIX for Dummies Questions & Answers

How to do the following commands

Given a directory on a Linux or on Unix file system that contains one or several text files, how would you Find the last 5 lines with the word “HELLO” in a single file Find the line number of the first line with the word “HELLO” in every file Find all lines with the word “HELLO” in all... (1 Reply)
Discussion started by: coppercat
1 Replies

7. Shell Programming and Scripting

Can BASH execute commands on a remote server when the commands are embedded in shell

I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config. I am not sure if I can do this with BASH scripting. I have set up password less login by adding my public key to authorized_keys file, it works. I am a little... (1 Reply)
Discussion started by: bash_in_my_head
1 Replies

8. Programming

code that reads commands from the standard i/p and executes the commands

Hello all, i've written a small piece of code that will read commands from standard input and executes the commands. Its working fine and is execting the commands well. Accepting arguments too. e.g #mkdir <name of the directory> The problem is that its not letting me change the directory i.e... (4 Replies)
Discussion started by: Phrozen Smoke
4 Replies

9. UNIX for Dummies Questions & Answers

commands

hi, I'm completely new to FreeBds or unix in general, is there a really nice site to teach you the basic ommands to free BSD. I don't know what to do. =( (3 Replies)
Discussion started by: Special K
3 Replies
Login or Register to Ask a Question