Sponsored Content
Top Forums Shell Programming and Scripting Run shell script on different machine using perl script Post 302632003 by Corona688 on Saturday 28th of April 2012 07:04:53 PM
Old 04-28-2012
That is 99% shell code with a thin layer of perl, why not just do it in shell?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to Run a shell script from Perl script in Parent shell?

Hi Perl/UNIX experts, I have a problem in running a shell script from my perl script (auto.pl). I run the perl script using perl auto.pl from the shell prompt The shell script picks the files in "input" folder and procesess it. The shell script blue.sh has this code. export... (16 Replies)
Discussion started by: hifake
16 Replies

2. Shell Programming and Scripting

How to run perl code within a shell script...?

Hi, I have a sheel script that invokes a perl script...Now, instead havin the perl script as a separate file I'd like put the contents in the sheel script itself...But I am not sure how ro run that perl script contents.please help me Thanks (1 Reply)
Discussion started by: vijay_0209
1 Replies

3. Shell Programming and Scripting

perl script to check if empty files are created and delete them and run a shell script

I have a local linux machine in which the files are dumped by a remote ubuntu server. If the process in remote server has any problem then empty files are created in local machine. Is there any way using perl script to check if the empty files are being created and delete them and then run a shell... (2 Replies)
Discussion started by: hussa1n
2 Replies

4. Shell Programming and Scripting

How to run perl script in remote machine from java application?

Hi I am working in a java application. I need to execute a perl script(linux) which is in remote machine in java application from local machine(windows). I need to do this process automatically that is without manual intereption. Now I will explain the process clearly, at present to run the... (1 Reply)
Discussion started by: bassma
1 Replies

5. Shell Programming and Scripting

shell script to run after ssh logout from another machine

Scenario: I currently manager a cluster at work which is on a private network and i constantly need to ssh to other clients for diags e.t.c. I created a debain client which i use as my gateway to get to all the clients on the private network and I then created a Shell menu script which will make... (4 Replies)
Discussion started by: defamer
4 Replies

6. UNIX for Dummies Questions & Answers

how to use ssh to run shell script on a remote machine?

how to use ssh to run shell script on a remote machine? ssh user@remote sh ./script.unx i ran the above command ./script.unx HAS NOHUP COMMAND IN ITS BODY, I AM GETTING ERROR AS NOHUP NOT FOUND... i tried to run that script from remote server, its working fine do ineed to set... (6 Replies)
Discussion started by: only4satish
6 Replies

7. UNIX for Advanced & Expert Users

Unable to run the script on remote machine Using Expect script

Not able to execute the file in remote host using except utility I am automating the SFTP keys setp process: So i created the expect script for controlling the output of shell below is my main code: Code: #!/usr/bin/expect set fd set password close $fd set df set app close $df... (1 Reply)
Discussion started by: Manoj Bajpai
1 Replies

8. Shell Programming and Scripting

To run a local shell script in a remote machine by passing arguments to the local shell script

I need to run a local shell script on a remote machine. I am able to achieve that by executing the command > ssh -qtt user@host < test.sh However, when I try to pass arguments to test.sh it fails. Any pointers would be appreciated. (7 Replies)
Discussion started by: Sree10
7 Replies

9. Shell Programming and Scripting

Perl program to run a Shell script issues...

Hi all, I have the following Perl script which is intended to run a Shell script and generate some logging for the purposes of tracking weather or not the script ran. I get an error, of course, since I don't know what I'm doing really. Here is the code: #!/opt/perl/bin/perl -w ... (14 Replies)
Discussion started by: zixzix01
14 Replies

10. Shell Programming and Scripting

Shell script run in a case statement call to run a php file, also Perl

Linux System having all Perl, Python, PHP (and Ruby) installed From a Shell script, can call a Perl, Python, PHP (or Ruby ?) file eg eg a Shell script run in a case statement call to run a php file, also Perl or/and Python file??? Like #!/usr/bin/bash .... .... case $INPUT_STRING... (1 Reply)
Discussion started by: hoyanet
1 Replies
shl(1)							      General Commands Manual							    shl(1)

NAME
shl - shell layer manager SYNOPSIS
DESCRIPTION
provides a means for interacting with more than one shell from a single terminal by using shell layers. A layer is a shell that is bound to a virtual device. The virtual device can be manipulated like an actual terminal by using and (see stty(1) and ioctl(2)). Each layer has its own process group ID. The user controls these layers by using the commands described below. The current layer is the layer that can receive input from the keyboard. Other layers attempting to read from the keyboard are blocked. Output from multiple layers is multiplexed onto the terminal. To block the output of a layer when it is not current, the option can be set within the layer. The character (set to if NUL) is used to switch control to from a layer. has its own prompt, to distinguish it from a layer. Definitions A is a sequence of characters delimited by a space, tab, or new-line character. Only the first eight characters are significant. When provided as an argument to the or commands, name cannot be of the form n or where n is a decimal number. Commands The following commands can be issued from the prompt level. Any unique prefix is accepted. Create a layer called name and make it the current layer. If no argument is given, a layer is created with a name of the form where n is the num- ber of the next available slot in an internal table. Future references to this layer can be made with or without the paren- theses. If name is followed by a command, that command is executed in the layer instead of a shell. If is the first argu- ment, a ``login shell'' is created in the layer. The shell prompt variable is set to the name of the layer followed by a space. Rename the layer oldname, calling it newname. If oldname is not specified, the current layer name is changed. Invoke a sub-shell and execute command. If no command is given, a shell is executed according to the environment variable. For each name, block the output of the corresponding layer when it is not the current layer. This is equivalent to setting the option within the layer. For each name, delete the corresponding layer. All processes in the process group of the layer are sent the signal (see signal(5)). Print the syntax of the commands. For each name, list the layer name and its process group. The option produces a ps(1)-like listing. If no arguments are given, information is presented for all existing layers. Change the status of the layer referred to by name to that of current layer. If no argument is given, the last existing current layer is changed. Change the status of the previous current layer to that of current layer. For each name, do not block the output of the corresponding layer when it is not the current layer. This is equivalent to setting the option within the layer. Exit All layers are sent the signal. name Change the status of the layer referred to by name to that of current layer. Any unique prefix is accepted. WARNINGS
Commands The behavior of the and commands is not guaranteed when the SHELL environment variable is set to (for csh(1)) or (for ksh(1)), or when the shell saves and restores the tty state (defined in termio(7)) before and after each command is invoked interactively from that shell. For both and the or options of can be used from within the layer to block or unblock the output of that layer. Ptydaemon For to function properly, the process must be running on the system. If your system has been installed with the Desktop HP-UX product, then will not be started by default. In order to start this daemon, change from a "0" to a "1" in the file. The system must either be rebooted for this change to take effect, or you can manually start this daemon by typing : Note that will also be disabled if the DesktopConfig.LITECONFIG fileset has been installed on the system, or if the system administrator has previously run the utility and selected the from within any of screens. does not support long user and group names on the current release, HP-UX 11i V3. FILES
Variable containing path name of the shell to use (default is SEE ALSO
sh(1), stty(1), ioctl(2), signal(5). STANDARDS CONFORMANCE
shl(1)
All times are GMT -4. The time now is 04:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy