Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Running shell scripts on a remote server Post 38658 by pepintheshort on Tuesday 22nd of July 2003 03:14:47 PM
Old 07-22-2003
Running shell scripts on a remote server

Hi -
I am running Mac OS X (Terminal) at my current workstation, and I would like to telnet to my local server to run a shell script. The local server is a Solaris machine (don't know the version or the type of Unix being run on it, sorry.)

The problem I have is that when I create a #!/bin/sh line, the local server doesn't recognize it . I run less on the .sh script file, so that I can see its contents and I only see the last three lines of the script.

Any suggestions for what I might be doing wrong? By the way, if it helps, the shell script file I created was made on the Mac, using BBEdit, but was saved as a Unix specific, Unix line breaks file. So, I should not be getting any "^M" character set issues with carriage returns.

Thanks for any suggestions you may have!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

running a script on remote server.

I need to run a script on a remote server from my ksh script. The issue I'm having is that I need to logon to the remote server as a different user. (see the following) logged on to server 1 as adsmgr neet to log on to server 2 as odemgr run passwd_util.ksh Thanks in advance. (1 Reply)
Discussion started by: whited05
1 Replies

2. Solaris

Running command on Remote server

Hi, I have username/password for a remote server. I would like to have list of filenames and their size in a particular directory of remote server. Now Problem is - I can not use rsh command as I can not modify rhost file of remote server. Thanks in advance. Sanjay (1 Reply)
Discussion started by: sanjay1979
1 Replies

3. Shell Programming and Scripting

Script to connect to a remote server and execute scripts

Hello All I need a script or set of commands which can establish a remote connection with another server and execute some scripts over there. Basically it has to establish the connection with the remote server as an user ,say 'testuser' and then execute the script 'testscript'. and return the... (5 Replies)
Discussion started by: sgbhat
5 Replies

4. Shell Programming and Scripting

Execute scripts on remote server

Hi All, I need to first of all establish a connection to remote unix server non-interactively with the help of a shell script and then connect to oracle database from that server all with this script of mine. Please suggest the best method which could be used to connect to server for executing... (1 Reply)
Discussion started by: m_kapur83
1 Replies

5. Shell Programming and Scripting

Running for loop on remote server

Hi, I'm having a problem performing for loop on remote server, i know this can be done with one liner but i'm not sure how it works if using logical operator such as for ifs and case or while for server in sterverA serverB serverC ; do ssh -v $server "cd ~/MyDocuments/; bag=`find... (6 Replies)
Discussion started by: sexyTrojan
6 Replies

6. UNIX for Dummies Questions & Answers

Running scripts from different server

Hi, I need a script (ksh) on ServerAdmin that will run an archive scripts from different several Servers through ssh. The problem is that how can i switch user when before running the archive script. I already configured password-less connection on the servers. server 1... (1 Reply)
Discussion started by: chococrunch6
1 Replies

7. Shell Programming and Scripting

Running script on remote server

Hi All, I need to run a ksh script on around 200 servers(consisting of AIX,LInux,HP-UX,Solaris). The script is there in the /tmp directory of all the servers. I want want to execute the script in background on the respective servers and then exit from there. I have written something like below:... (8 Replies)
Discussion started by: proactiveaditya
8 Replies

8. Shell Programming and Scripting

Run scripts on remote server

I have a sql script in my parent server - host1 i can do a passwordless ssh to remote server - host1a and host1b Can i run the sql script which is present in host1 by connecting to host1a and host1b. Should i place the sql script in host1a and host1b ? Is there a way i can run without placing... (2 Replies)
Discussion started by: Nagesh_1985
2 Replies

9. Shell Programming and Scripting

How to Append the output of a script running in remote server to a file in local server?

Hi guys, So i am in server1 and i have to login to server 2, 3,4 and run some script there(logging script) and output its result. What i am doing is running the script in server2 and outputting it to a file in server 2 and then Scp'ing the file to server1. Similarly i am doing this for other... (5 Replies)
Discussion started by: srkmish
5 Replies

10. Shell Programming and Scripting

Sudo connect to a remote server and execute scripts in remote server

Hello Every one!! I am trying to write a shell script which will connect to a remote server and execute scripts which are at a certain path in the remote server. Before this I am using a sudo command to change the user. The place where I am stuck is, I am able to connect to the... (6 Replies)
Discussion started by: masubram
6 Replies
aserver(1M)															       aserver(1M)

NAME
Aserver - start the audio server SYNOPSIS
DESCRIPTION
The command starts the HP-UX Audio server, which can run on a system with audio hardware. See Audio(5) for information about which systems have audio hardware. The option forces the starting of the Audio server; this option is only needed if the Aserver has problems starting. The Audio Server Before using any audio tools such as the the system or X station must be running two audio server processes, called On a Series 700, the Remote Procedure Call daemon must also be running. Normally, the Aserver processes and start automatically when the system is booted. If problems occur on an ENTRIA or ENVIZEX X station, see the X station owner's manual. On a Series 700 Audio hardware, first check if is running. Type the following: If it is running, you see a line similar to the following. If it is not running, see HP 9000/DCE documentation for information on restarting it. If is running, verify that the Aserver is running. Type: If the Aserver is running you will see lines similar to the following, which indicate the presence of the two Aserver processes: If it is not running, become root and restart it as follows: If it fails to start, reissue the command with the option: Using Audio over the Network From a workstation, you can also use the Audio Editor and Control Panel over the network. However, the remote system is where the actual playback and recording occur. The local workstation (or audio client) can be any Series 700 system. The remote system (or audio server) can be a Series 700 or an X sta- tion with audio hardware and must have the Aserver processes running. If the server is a workstation, it must also allow access from remote clients (see asecure(1M)) and must have running. To make the system an audio client, set the variable by modifying the file as follows: Korn and POSIX Shells: C Shell: For system_name, identify the workstation or X Station running the Aserver. If the variable is not set, the Audio Library attempts to use to the Aserver on the system defined by the variable. If neither nor is set, the Aserver on the local machine is used. DEPENDENCIES
The Audio Server must run on a system that has audio hardware. Note that HP-UX for the 8MB 705 System does not include audio software. AUTHOR
The Audio Server was developed by HP. SEE ALSO
audio(5), asecure(1M), attributes(1), convert(1), send_sound(1). aserver(1M)
All times are GMT -4. The time now is 08:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy