Sponsored Content
Top Forums Shell Programming and Scripting Ability to run sas prog on remote server using SSH Post 302318840 by coolavi on Friday 22nd of May 2009 11:47:42 AM
Old 05-22-2009
Hi Lu,
That worked! Smilie. I needed to invoke the sas before the running the prog using SSH. I did not look into that before because I was able to run the sas job on the command line on the remote server.

ssh serverA "cd /directory/sas; pwd;ls; /path_to_sas/sas avi.sas"
Thanks for the help Lu Smilie,

Coolavi
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Issues using ssh from crontab to run remote script from

I have a solaris9 x86 server using ssh as follows: SSH Version Sun_SSH_1.0, protocol versions 1.5/2.0. The remote server solaris9 sparc has exactly the same version ssh installed. I am running a script on my server which includes the following command to run a script on the remote server:... (4 Replies)
Discussion started by: frustrated1
4 Replies

2. UNIX for Dummies Questions & Answers

Closing ssh when process run on remote

Hi! I currently run a very long script (two hour left...) on a remote computer through a ssh session. I wonder whats happend if I close the ssh session, or even, the terminal. Is the script running on remote will stop? Thanks for your answers, Tp (1 Reply)
Discussion started by: tipi
1 Replies

3. Shell Programming and Scripting

SSH Remote login to VIO's (padmin) and run oem_setup_env

Hello all, I have been trying to run commands that collect basic info from the VIO's The issue I am having is setting the env with the "oem_setup_env" after I login as "padmin". I usually do the following: ssh server command ssh root@server date , but I need to login set the env and... (0 Replies)
Discussion started by: dfezz1
0 Replies

4. Shell Programming and Scripting

Need help on how to exit a script run on a server from a remote server

hi, I am using the below line to run a script from remote server(say server A) to another server(say server B). ssh username@servername ksh script name. The issue is the script logs into server B, executes the script on server B, transfers the file to server A but does not exit from... (4 Replies)
Discussion started by: yohasini
4 Replies

5. 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

6. 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

7. Shell Programming and Scripting

Multi server access through remote server using ssh

Team, Presently I have 5 ip address kept in ip_abc1 file, for each of the ip address listed, i need to login on each ipaddress one at a time and login as below for that specific ip address ssh -p 8101 karaf@<ip.address_for the specific ip address as logged in> password features:list... (4 Replies)
Discussion started by: whizkidash
4 Replies

8. Shell Programming and Scripting

How to run commands on remote server using ssh password less authentication?

Hi, I need to run a script located in a directory on remote server by using ssh authentication from my local unix server. Can anyone help me in this. I have tried the below command. It worked for echo command but when i tried to open a file using cat command it is showing "cat: cannot open... (6 Replies)
Discussion started by: ssk250
6 Replies

9. Ubuntu

Run a script at remote server without ssh password

Hello, What I want to do is to run a file on remote server by running a script at localhost but script should not ask ssh password of my remote server when script is executed. Scenario1: To copy files from server2 to data server:$ scp -r root@server2_ip:/var/www/html/*.* /var/ When I enter... (6 Replies)
Discussion started by: baris35
6 Replies

10. UNIX for Beginners Questions & Answers

How to run command on remote server?

Hi I am trying to write a script which when I run from server A it execute few command on another server say B and show me the output. below is the script but it is not showing me the o/p of B machine but instead showing me A machine o/p every time. #!/bin/bash for i in `cat... (14 Replies)
Discussion started by: scriptor
14 Replies
QSTAT(1)							   User Commands							  QSTAT(1)

NAME
qstat - Tool for querying gaming servers SYNOPSIS
qstat [options ...] [-default server-type] [-cfg file] [-f file] [host[:port]] ... Where host is an IP address or host name DESCRIPTION
Qstat provides a simple interface for querying servers for a number of games, including but not limited to quake, quakeworld, quake2, quake3arena, unreal tournament or half-life. For servers running a game, the server name, map name, current number of players, and response time are displayed. Server rules and player information may also be displayed. OPTIONS
-a2s query Half-Life 2 new server -ams query America's Army v2.x server -bfs query BFRIS server -d3g query Descent3 Gamespy Protocol server -d3m query Descent3 Master (PXO) server -d3p query Descent3 PXO protocol server -d3s query Descent3 server -dm3m query Doom 3 Master server -dm3s query Doom 3 server -efm query Star Trek: Elite Force server -efs query Star Trek: Elite Force server -eye query All Seeing Eye Protocol server -fcs query FarCry server -gps query Gamespy Protocol server -grs query Ghost Recon server -gs2 query Gamespy V2 Protocol server -gs3 query Gamespy V3 Protocol server -gs4 query Gamespy V4 Protocol server -gsm query Gamespy Master server -h2s query Hexen II server -hl2s query Half-Life 2 server -hlm query Half-Life Master server -hls query Half-Life server -hrs query Heretic II server -hws query HexenWorld server -jk3m query Jedi Knight: Jedi Academy server -jk3s query Jedi Knight: Jedi Academy server -kps query Kingpin server -preys query PREY server -prs query Pariah server -q2m query Quake II Master server -q2s query Quake II server -q3m query Quake III Master server -q3s query Quake III: Arena server -q4m query Quake 4 Master server -q4s query Quake 4 server -qs query Quake server -qwm query QuakeWorld Master server -qws query QuakeWorld server -rss query Ravenshield server -rwm query Return to Castle Wolfenstein Master server -rws query Return to Castle Wolfenstein server -sas query Savage server -sfs query Soldier of Fortune server -sgs query Shogo: Mobile Armor Division server -sns query Sin server -stm query Steam Master server -t2m query Tribes 2 Master server -t2s query Tribes 2 server -tbm query Tribes Master server -tbs query Tribes server -tm query TrackMania server -ts2 query Teamspeak 2 server -uns query Unreal server -ut2004m query UT2004 Master server -ut2s query Unreal Tournament 2003 server -default set default server type: a2s ams bfs d3g d3m d3p d3s dm3m dm3s efm efs eye fcs gps grs gs2 gs3 gs4 gsm h2s hl2s hlm hls hrs hws jk3m jk3s kps preys prs q2m q2s q3m q3s q4m q4s qs qwm qws rss rwm rws sas sfs sgs sns stm t2m t2s tbm tbs tm ts2 uns ut2004m ut2s -nocfg Ignore qstat configuration loaded from any default location. Must be the first option on the command-line. -cfg read the extended types from given file not the default one -f read hosts from file -R fetch and display server rules -P fetch and display player info -sort sort servers and/or players -u only display servers that are up -nf do not display full servers -ne do not display empty servers -nh do not display header line. -cn display color names instead of numbers -ncn display color numbers instead of names -hc display colors in #rrggbb format -tc display time in clock format (DhDDmDDs) -tsw display time in stop-watch format (DD:DD:DD) -ts display time in seconds -pa display player address -hpn display player names in hex -hsn display server names in hex -nh do not display header -old old style display -progress display progress meter (text only) -retry number of retries, default is 3 -interval interval between retries, default is 0.50 seconds -mi interval between master server retries, default is 2.00 seconds -timeout total time in seconds before giving up -maxsim set maximum simultaneous queries -sendinterval set time in ms between sending packets, default 5 -errors display errors -allowserverdups allow adding multiple servers with same ip:port (needed for ts2) -of output file -af Like -of, but append to the file -raw <delim> output in raw format using <delim> as delimiter -mdelim <delim> For rules with multi values use <delim> as delimiter -xml output status data as an XML document -Th, -Ts, -Tpt output templates: header, server and player -Tr, -Tt output templates: rule, and trailer -srcport <range> Send packets from these network ports -srcip <IP> Send packets using this IP address -H resolve host names -Hcache <file> host name cache file -carets Display carets in Quake 3 player names -d Enable debug options. Specify multiple times to increase debug level -dump write received raw packets to dumpNNN files which must not exist before -pkt <file> use file as server reply instead of querying the server. Works only with TF_SINGLE_QUERY servers -htmlmode Convert <, >, and & to the equivalent HTML entities -htmlnames Colorize Quake 3 and Tribes 2 player names using html font tags -nohtmlnames Do not colorize Quake 3 and Tribes 2 player names even if $HTML is used in an output template -showgameport Always display the game port in QStat output -noportoffset Do not use builtin status port offsets (assume query port was specified) -raw-arg When used with -raw, always display the server address as it appeared in a file or on the command-line -utf8 Use the UTF-8 character encoding for XML output. Sort keys: servers: p=by-ping, g=by-game, i=by-IP-address, h=by-hostname, n=by-#-players, l=by-list-order players: P=by-ping, F=by-frags, T=by-team, N=by-name This manpage describes qstat version 2.11. SEE ALSO
/usr/share/doc/qstat/qstatdoc.html AUTHOR
This manual page was originally written by Jordi Mallach <jordi@debian.org>, for the Debian system and is distributed under the same licence as Qstat itself. qstat June 2010 QSTAT(1)
All times are GMT -4. The time now is 08:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy