Sponsored Content
Top Forums Shell Programming and Scripting Help with fetching the data from remote machine from my jumpbox(local machine) Post 302913344 by whizkidash on Friday 15th of August 2014 11:42:42 AM
Old 08-15-2014
Solved.. Many Thanks Rudi..Smilie
 

10 More Discussions You Might Find Interesting

1. Solaris

[FTP]opying of file from remote to local machine

Hi All, i wannna copy a file from the remote machine to my local machine using FTP protocol. i have made a connection to the remote machine , then i used the "get" cmd to copy the remote file as below :-> ftp> get (remote-file) /home/aruba/opmtools/was50/Was5Install.doc (local-file)... (1 Reply)
Discussion started by: sonbag_pspl
1 Replies

2. Red Hat

To find the LATEST file from a dir on REMOTE machine and SCP to local machine?

Hi All, URGENT - Please help me form a scipt for this: I need the LATEST file from a dir on REMOTE machine to be SCP'd to a dir on local machine. (and I need to execute this from local server) I know that the below cmd is used to find the LATEST file from a dir. But this command is not... (3 Replies)
Discussion started by: me_ub
3 Replies

3. Shell Programming and Scripting

check web server running on local and on remote machine

Hi , How to check whether web server is running from remote machine How to check whether web server is running on web server itself Can any one help me soon (1 Reply)
Discussion started by: satheeshkr_cse
1 Replies

4. Shell Programming and Scripting

Define local variable on remote machine ?

Hello, I'm executing many commands using ssh and I want to define local vars on remote machine to ease my work: ssh remote1 <<-heredoc1 cmd1 cmd2 ... heredoc1 This one obviously defines variable on local machine: ssh remote1 "x=10" This one returns: ssh remote1 "'x=10'" bash: x=10:... (1 Reply)
Discussion started by: vilius
1 Replies

5. Shell Programming and Scripting

Using local variable on a remote machine

Hi, I'm writing a korn shell script where the user enters a variable and I have to create a directory remotely which contains the name of that variable. Example. print 'Please enter variable:' read variable ssh user@host 'mkdir before_$variable;' Thank you. (4 Replies)
Discussion started by: jangozo
4 Replies

6. Shell Programming and Scripting

How to transfer files from unix machine to local machine using shell script?

Hi All.. Am new to Unix!! Am creating a shell script in which a scenario is like i have transfer the output file from unix machine (Server) to local directory (Windows xp). And also i have to transfer the input file from the local directory to Unix machine (Server) Any help from you... (1 Reply)
Discussion started by: vidhyaS
1 Replies

7. UNIX for Dummies Questions & Answers

Retrieve data from Remote machine

Hello Please I ask if it is possible to recover data that is stored on a remote machine that I access via ssh on a usb ? if so, how? Thank you so much (5 Replies)
Discussion started by: chercheur857
5 Replies

8. UNIX for Advanced & Expert Users

FTP While transfering files to local machine to remote machine

Hi Am using unix Ksh Am getting the problem while transferring zero size files through the script . When i transfer zero size files from local machine to remote machine manually i can able to do it . My question its beause of zero size files am not able to transfer through script ? or its... (2 Replies)
Discussion started by: Venkatesh1
2 Replies

9. Red Hat

iptables applied in local machine, can't ssh remote machine after chain changed to DROP

I want to SSH to 192.168.1.15 Server from my machine, my ip was 192.168.1.99 Source Destination was UP, with IP 192.168.1.15. This is LAN Network there are 30 Machine's Connected to the network and working fine, I'm Playing around the local machine's because I need to apply the same rules in... (2 Replies)
Discussion started by: babinlonston
2 Replies

10. Shell Programming and Scripting

How can I execute local script on remote machine and include arguments?

I have a script in local server cd /home/dell/work/BOP/testdir ./processchk po (here processchk is a script & po is passed as an argument) Now I want to execute this script from remote server ssh $username@$hostname "cd /home/dell/work/BOP/testdir; ./processchk po" But Its getting error... (9 Replies)
Discussion started by: manohar2013
9 Replies
ObjScanner(3pm) 					User Contributed Perl Documentation					   ObjScanner(3pm)

NAME
Tk::ObjScanner - Tk data scanner SYNOPSIS
# regular use use Tk::ObjScanner; my $scanner = $mw->ObjScanner( -caller => $object, -title=>"windows") -> pack ; my $mw -> ObjScanner ( -caller => $object, -title => 'demo setting the scanner options', -background => 'white', -selectbackground => 'beige', -foldImage => $mw->Photo(-file => Tk->findINC('folder.xpm')), -openImage => $mw->Photo(-file => Tk->findINC('openfolder.xpm')), -itemImage => $mw->Photo(-file => Tk->findINC('textfile.xpm')), ) -> pack(-expand => 1, -fill => 'both') ; # non-intrusive scan style # user code to produce data Tk::ObjScanner::scan_object($mydata) ; # resume user code DESCRIPTION
The scanner provides a GUI to scan the attributes of an object. It can also be used to scan the elements of a hash or an array. This widget can be used as a regular widget in a Tk application or can be used as an autonomous popup widget that will display the content of a data structure. The latter is like a call to a graphical Data::Dumper. The scanner can be used in an autonomous way with the "scan_object" function. The scanner is a composite widget made of a menubar and Tk::HList. This widget acts as a scanner to the object (or hash ref) passed with the 'caller' parameter. The scanner will retrieve all keys of the hash/object and insert them in the HList. When the user double clicks on a key, the corresponding value will be added in the HList. If the value is a multi-line scalar, the scalar will be displayed in a popup text window. Code ref will be deparsed and shown also in the pop-up window. Tied scalar, hash or array internal can also be scanned by clicking on the middle button to open them. Weak references are recognized (See WeakRef for details) Autonomous widget scan_object( data ) This function is not exported and must be called this way: Tk::ObjScanner::scan_object($data); This function will load Tk and pop up a scanner widget. When the user destroy the widget (with "File -" destroy> menu), the user code is resumed. Constructor parameters "caller" The ref of the object or hash or array to scan (mandatory). (you can also use '"-caller"') "-title" The title of the menu created by the scanner (optional) "-background" The background color for subwidgets (optional) "-selectbackground" The select background color for HList (optional) "-itemImage" The image for a scalar item (optional, default 'file.xbm') "-foldImage" The image for a composite item (array or hash) when closed (optional, default 'folder.xbm') "-openImage" The image for a composite item (array or hash) when open (optional, default 'openfolder.xbm') "-show_menu" ObjScanner can feature a menu with 'reload' button, 'show tied info', 'view pseudo-hash' check box. (optional default 0). "-destroyable" If set, a menu entry will allow the user to destroy the scanner widget. (optional, default 1) . You may want to set this parameter to 0 if the destroy can be managed by a higher level object. This parameter is ignored if show_menu is unset. "-view_pseudo" If set, will interpret pseudo hashes as hash (default 0). This option is disabled for Perl 5.09 and later. "-show_tied" If set, will indicate if a variable is a tied variable. You can see the internal data of the tied variable by double clicking on the middle button. (default 1) WIDGET-SPECIFIC METHODS updateListBox Update the keys of the listbox. This method may be handy if the scanned object wants to update the listbox of the scanner when the scanned object gets new attributes. CAVEATS
The name of the widget is misleading as any data (not only object) may be scanned. This widget is in fact a DataScanner. ObjScanner may fail if an object involves a lot of internal perl magic. In this case, I'd be glad to hear about and I'll try to fix the problem. ObjScanner does not detect recursive data structures. It will just keep on displaying the tree until the user gets tired of clicking on the HList items. There's no sure way to detect if a reference is a pseudo-hash or not. When a reference is believed to be a pseudo-hash, ObjScanner will display the content of the reference like a hash. If the reference is should not be displayed like a pseudo-hash, you can turn off the pseudo-hash view with the check button on the top right of the widget. Aynway, pseudo-hashes are deprecated from perl 5.8.0. Hence they are also deprecated in ObjScanner. The icon used for tied scalar changes from scalar icon to folder icon when opening the object hidden behind the tied scalar (using the middle button). I sure could use a better icon for tied items. (hint hint) THANKS
To Rudi Farkas for all the improvements provided to ObjScanner. To Slaven Rezic for: o The propotype code of the pseudo-hash viewer. o The idea to use B::Deparse to view code ref. AUTHOR
Dominique Dumont, dominique.dumont@hp.com Copyright (c) 1997-2004,2007 Dominique Dumont. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
perl, Tk, Tk::HList, B::Deparse perl v5.10.1 2007-10-09 ObjScanner(3pm)
All times are GMT -4. The time now is 11:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy