Sponsored Content
Top Forums Shell Programming and Scripting ftp and telnet in the same script ?? Urgent Help !! Post 302072030 by aarora_98 on Wednesday 26th of April 2006 01:26:33 PM
Old 04-26-2006
Now I am able to telnet to machine2 with certain changes.

But when it connect to machine2... it gives me following error and cmds are not executed as it get connected to machine2.


Changes made are:


ftp machine2 << END_SCRIPT
-- some cmds--
--
--
quit
END_SCRIPT


telnet machine2 <<END_SCRIPT
--some cmds-
--
--
END_SCRIPT



Error is (when it try to connect to machine2 through telnet) :

Trying IP_OF_MACHINE2...
Connected to machine2
Escape character is '^]'.
Connection closed by foreign host.

I am providing the user name and psw for the machines through variables.
Plz let me know if any body has some idea about this.


Thnx..
Aru
 

10 More Discussions You Might Find Interesting

1. IP Networking

FTP or Telnet

Dumb question I'm sure but how on earth do I transfer files from a sco unix machine to my windows 2000 machine. I'm typing commands on my Win2000 machine. All I can seem to do is move files around on the unix system? (8 Replies)
Discussion started by: Timbash
8 Replies

2. Linux

ftp telnet enable

hi , i have jsut installed linux 9.0 , but i can not ftp or telnet to the system . i have installed the ftp and the telnet server during installation . i have also configured the files to enable the ftp and telnet , the ftp and the telnet daemons are running , but when i do ftp : ftp... (1 Reply)
Discussion started by: ppass
1 Replies

3. UNIX for Dummies Questions & Answers

Urgent FTP script automation

Hi guys, Here is my requirement for ftp script that i have to automate in unix using shell script: 1) Find the files that atre created one week from the present day. 2) ftp them to the backup server. 3) At the end of the month make a new directory on my backup server with the new month(eg:Once... (1 Reply)
Discussion started by: koduri0475
1 Replies

4. UNIX Desktop Questions & Answers

Urgent FTP script automation

Hi guys, Here is my requirement for ftp script that i have to automate in unix using shell script: 1) Find the files that atre created one week from the present day. 2) ftp them to the backup server. 3) At the end of the month make a new directory on my backup server with the new month(eg:Once... (1 Reply)
Discussion started by: koduri0475
1 Replies

5. Filesystems, Disks and Memory

Urgent FTP script automation

Hi guys, Here is my requirement for ftp script that i have to automate in unix using shell script: 1) Find the files that atre created one week from the present day. 2) ftp them to the backup server. 3) At the end of the month make a new directory on my backup server with the new month(eg:Once... (1 Reply)
Discussion started by: koduri0475
1 Replies

6. UNIX for Advanced & Expert Users

FTP script urgent

Hi guys, Here is my requirement for ftp script that i have to automate in unix using shell script: 1) Find the files that atre created one week from the present day. 2) ftp them to the backup server. 3) At the end of the month make a new directory on my backup server with the new month(eg:Once... (1 Reply)
Discussion started by: koduri0475
1 Replies

7. UNIX for Advanced & Expert Users

Script should flow after ftp --Urgent

Hi everyone, The script actually does the ftp and gets the file to the local system. I want to do some manipulations for that file , But after doing ftp , script is not proceding and just a prompt is displayed . .... ftp code here...... .................... ............... echo "FTP... (4 Replies)
Discussion started by: kaaakrishna
4 Replies

8. Shell Programming and Scripting

urgent help needed in telnet issue

Hi, Whenever i am trying to telnet to server i am getting frequent error Authorized Login: prtsrc's Password: /dev/pts/171: Password read timed out -- possible noise on port when i am rerunning the same it is working fine thanks, sam (2 Replies)
Discussion started by: sam99
2 Replies

9. Shell Programming and Scripting

Urgent Telnet Script

hi all, I want to telnet to a port. aand then run a command called 'show threads' once i'm connected to the telnet prompt. then the respond of this 'show threads' i want to store it in a file on a local system. can someone please help me out here? this needs to be scripted, shell script. ... (1 Reply)
Discussion started by: SkySmart
1 Replies

10. Shell Programming and Scripting

URGENT Reading a file and assessing the syntax shell script URGENT

I am trying to write a shell script which takes an input file as an arguement in the terminal e.g. bash shellscriptname.sh input.txt. I would like for the file to be read line by line each time checking if the .txt file contains certain words or letters(validating the syntax). If the line being... (1 Reply)
Discussion started by: Gurdza32
1 Replies
LSTOPO(1)							       hwloc								 LSTOPO(1)

NAME
lstopo - Show the topology of the system (note that hwloc-bind(1) provides a detailed explanation of the hwloc system; it should be read before reading this man page). SYNOPSIS
lstopo [ options ]... [ filename ] OPTIONS
--of <format>, --output-format <format> Enforce the output in the given format. See the OUTPUT FORMATS section below. -i <file>, --input <file> Read topology from XML file <file> (instead of discovering the topology on the local machine). If <file> is "-", the standard input is used. XML support must have been compiled in to hwloc for this option to be usable. -i <directory>, --input <directory> Read topology from the chroot specified by <directory> (instead of discovering the topology on the local machine). This option is generally only available on Linux. The chroot was usually created by gathering another machine topology with hwloc-gather-topology. -i <specification>, --input <specification> Simulate a fake hierarchy (instead of discovering the topology on the local machine). If <specification> is "node:2 pu:3", the topology will contain two NUMA nodes with 3 processing units in each of them. The <specification> string must end with a number of PUs. --if <format>, --input-format <format> Enforce the input in the given format, among xml, fsroot and synthetic. -v --verbose Include additional detail. -s --silent Reduce the amount of details to show. -l --logical Display hwloc logical indexes instead of physical/OS indexes (default for console output). These indexes are prefixed with "L#". The physical indexes of some objects (PU and Node by default, all objects if verbose) will appear as object attribute "P#...". -p --physical Display OS/physical indexes instead of hwloc logical indexes (default for graphical output). These indexes are prefixed with "P#" instead of "L#" in the console output. -c --cpuset Display the cpuset of each object. -C --cpuset-only Only display the cpuset of each object; do not display anything else about the object. --taskset Show CPU set strings in the format recognized by the taskset command-line program instead of hwloc-specific CPU set string format. This option should be combined with --cpuset or --cpuset-only, otherwise it will imply --cpuset. --only <type> Only show objects of the given type in the textual output. --ignore <type> Ignore all objects of type <type> in the topology. --no-caches Do not show caches. --no-useless-caches Do not show caches which do not have a hierarchical impact. --whole-system Do not consider administration limitations. --merge Do not show levels that do not have a hierarchical impact. --restrict <cpuset> Restrict the topology to the given cpuset. --restrict binding Restrict the topology to the current process binding. This option requires the use of the actual current machine topology (or any other topology with --thissystem or with HWLOC_THISSYSTEM set to 1 in the environment). --no-io Do not show any I/O device or bridge. By default, common devices (GPUs, NICs, block devices, ...) and interesting bridges are shown. --no-bridges Do not show any I/O bridge except hostbridges. By default, common devices (GPUs, NICs, block devices, ...) and interesting bridges are shown. --whole-io Show all I/O devices and bridges. By default, only common devices (GPUs, NICs, block devices, ...) and interesting bridges are shown. --thissystem Assume that the selected backend provides the topology for the system on which we are running. This is useful when using --restrict binding and loading a custom topology such as an XML file. --pid <pid> Detect topology as seen by process <pid>, i.e. as if process <pid> did the discovery itself, and show its current binding. Note that this can for instance change the set of allowed processors. If 0 is given as pid, the current binding for the lstopo process will be shown. --ps --top Show existing processes as misc objects in the output. To avoid uselessly cluttering the output, only processes that are restricted to some part of the machine are shown. On Linux, kernel threads are not shown. If many processes appear, the output may become hard to read anyway, making the hwloc-ps program more practical. --fontsize <size> Set size of text font. --gridsize <size> Set size of margin between elements. --horiz, --horiz=<type1,...> Horizontal graphical layout instead of nearly 4/3 ratio. If a comma-separated list of types is given, the layout only applies to the corresponding containers. --vert, --vert=<type1,...> Vertical graphical layout instead of nearly 4/3 ratio. If a comma-separated list of types is given, the layout only applies to the corresponding containers. --no-legend Remove the text legend at the bottom. --version Report version and exit. DESCRIPTION
lstopo is capable of displaying a topological map of the system in a variety of different output formats. If no filename is specified and the DISPLAY environment variable is set, lstopo displays the map in a graphical window. If no filename is specified and the DISPLAY envi- ronment variable is not set, a text summary is displayed. The filename specified directly implies the output format that will be used; see the OUTPUT FORMATS section, below. Output formats that support color will indicate specific characteristics about individual CPUs by their color; see the COLORS section, below. OUTPUT FORMATS
The filename on the command line usually determines the format of the output. There are a few filenames that indicate specific output for- mats and devices (e.g., a filename of "-" will output a text summary to stdout), but most filenames indicate the desired output format by their suffix (e.g., "topo.png" will output a PNG-format file). The format of the output may also be changed with "--of". For instance, "--of pdf" will generate a PDF-format file on the standard output, while "--of fig toto" will output a Xfig-format file named "toto". The list of currently supported formats is given below. Any of them may be used with "--of" or as a filename suffix. default Send the output to a window or to the console depending on the environment. console Send a text summary to stdout. txt Output an ASCII art representation of the map. If outputting to stdout and if colors are supported on the terminal, the output will be colorized. fig Output a representation of the map that can be loaded in Xfig. pdf If lstopo was compiled with the proper support, lstopo outputs a PDF representation of the map. ps If lstopo was compiled with the proper support, lstopo outputs a Postscript representation of the map. png If lstopo was compiled with the proper support, lstopo outputs a PNG representation of the map. svg If lstopo was compiled with the proper support, lstopo outputs an SVG representation of the map. synthetic If the topology is symmetric, lstopo outputs a synthetic description string. This output may be reused as an input synthetic topol- ogy description later. xml If lstopo was compiled with the proper support, lstopo outputs an XML representation of the map. It may be reused later, even on another machine, with lstopo --input, the HWLOC_XMLFILE environment variable, or the hwloc_topology_set_xml() function. The following special names may be used: - Send a text summary to stdout. /dev/stdout Send a text summary to stdout. It is effectively the same as specifying "-". -.<format> If the entire filename is "-.<format>", lstopo behaves as if "--of <format> -" was given, which means a file of the given format is sent to the standard output. See the output of "lstopo --help" for a specific list of what graphical output formats are supported in your hwloc installation. COLORS
Individual CPUs are colored in the semi-graphical and graphical output formats to indicate different characteristics: Green The CPU is in the current CPU binding mask. White The CPU is in the allowed set (see below), but it is not in the current CPU binding mask. Red The CPU is not in the allowed set (see below). Black The CPU is offline (not all OS's support displaying offline CPUs). The "allowed set" is the set of CPUs to which the current process is allowed to bind. The allowed set is usually either inherited from the parent process or set by administrative qpolicies on the system. Linux cpusets are one example of limiting the allowed set for a process and its children to be less than the full set of CPUs on the system. Different processes may therefore have different CPUs in the allowed set. Hence, invoking lstopo in different contexts and/or as different users may display different colors for the same individual CPUs (e.g., running lstopo in one context may show a specific CPU as red, but running lstopo in a different context may show the same CPU as white). LAYOUT
In its graphical output, lstopo uses simple rectangular heuristics to try to achieve a 4/3 ratio between width and height. However, in the particular case of NUMA nodes, the layout is always a flat rectangle, to avoid letting the user believe any particular NUMA topology (lstopo is not able to render that yet). EXAMPLES
To display the machine topology in textual mode: lstopo - To display the machine topology in pseudo-graphical mode: lstopo -.txt To display in graphical mode (assuming that the DISPLAY environment variable is set to a relevant value): lstopo To export the topology to a PNG file: lstopo file.png To export an XML file on a machine and later display the corresponding graphical output on another machine: machine1$ lstopo file.xml <transfer file.xml from machine1 to machine2> machine2$ lstopo --input file.xml To save the current machine topology to XML and later reload it faster while still considering it as the current machine: $ lstopo file.xml <...> $ lstopo --input file.xml --thissystem To restrict an XML topology to only physical processors 0, 1, 4 and 5: lstopo --input file.xml --restrict 0x33 newfile.xml To restrict an XML topology to only numa node whose logical index is 1: lstopo --input file.xml --restrict $(hwloc-calc --input file.xml node:1) newfile.xml To display a summary of the topology: lstopo -s To get more details about the topology: lstopo -v To only show cores: lstopo --only core To show cpusets: lstopo --cpuset To only show the cpusets of sockets: lstopo --only socket --cpuset-only Simulate a fake hierarchy; this example shows with 2 NUMA nodes of 2 processor units: lstopo --input "n:2 2" To count the number of logical processors in the system lstopo --only pu | wc -l SEE ALSO
hwloc-bind(1), hwloc-ps(1), hwloc-gather-topology(1) 1.4.1 Feb 27, 2012 LSTOPO(1)
All times are GMT -4. The time now is 07:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy