10-11-2016
Check those double quotes, you have to escape the inner ones. As it stands now, it executes parts of the command locally.
Juha
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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. UNIX for Dummies Questions & Answers
mac 10.4>terminal>linux remote server>ssh login accepted>session closed-why?
AHHHH!!
I have been connecting to the server with the line: ssh userid@website.com
The remote server accepts my password; logs me in with ssh; posts a lovely welcome message AND closes the session. Is this a "term... (0 Replies)
Discussion started by: xprankard
0 Replies
3. Shell Programming and Scripting
Hello people,
I am want to run a server on remote machine through perl scripting using telnet api. Now when I try to do so, the server gets started perfectly, but as soon as I close the telnet connection in the script, the server started on the remote machine suddenly goes down. I also... (0 Replies)
Discussion started by: chandrak
0 Replies
4. Shell Programming and Scripting
Hi,
I am trying to write a script, which queries a db to get the names of processes, stores it in a file and then checks if that process is running on a remote server. However I am not getting it right, could anyone help me out.
#!/bin/sh
echo "select Address from Device where Cust =... (5 Replies)
Discussion started by: amitsayshii
5 Replies
5. Shell Programming and Scripting
I am trying to write a script that would let me run a command in a remote server using ssh.
scriptA: (dcm2nii is a command that only works on the other server)
dcm2nii a b c
scriptB: (I run this one on the current server)
ssh -X otherserver /home/abc/Desktop/scriptA
But when I do ... (2 Replies)
Discussion started by: ZeroGPX
2 Replies
6. Shell Programming and Scripting
Hi,
I want to execute shell script with in sftp session for remote server.
like i have a shell script test.sh that is on local server.i want to execute that script on remote server
sftp user@192.168.56.10
sftp> test.sh ---execute for remote server not for local server.
sftp... (3 Replies)
Discussion started by: SAUD PASHA
3 Replies
7. Shell Programming and Scripting
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
Greetings, guys. I'm not much of a programmer forgive me for being a noob, because of someone leaving, I was put in an IT spot where I have to figure out a few things. Being new to Linux and programming has been a challenge.
My boss has asked me to create an automated script to connect to a 3rd... (7 Replies)
Discussion started by: giovannym
7 Replies
9. Shell Programming and Scripting
Hi all,
I am baffled on this. Solaris Irix system.:confused:
I have 4 servers all connected to one another, :b: I need to write a script line that would login on to server 1-3 ($HOST) start a script in the back ground and log off while the back ground script runs over a length of time.:eek:
... (10 Replies)
Discussion started by: weddy
10 Replies
10. Shell Programming and Scripting
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
sin(3m) sin(3m)
Name
sin, cos, tan, asin, acos, atan, atan2 - trigonometric functions and their inverses
Syntax
#include <math.h>
double sin(x)
double x;
float fsin(x)
float x;
double cos(x)
double x;
float fcos(x)
float x;
double tan(x)
double x;
float ftan(x)
float x;
double asin(x)
double x;
float fasin(x)
float x;
double acos(x)
double x;
float facos(x)
float x;
double atan(x)
double x;
float fatan(x)
float x;
double atan2(y,x)
double y,x;
float fatan2(y,x)
float y,x;
Description
The and functions return trigonometric functions of radian arguments x for double data types.
The and functions return trigonometric functions for float data types.
The and functions return the arc sine in the range -pi/2 to pi/2 for double and float data types, respectively.
The and functions return the arc cosine in the range 0 to pi for double and float data types, respectively.
The and functions return the arc tangent in the range -pi/2 to pi/2 for double and float data types, respectively.
The and functions return the arc tangent of y/x in the range -pi to using the signs of both arguments to determine the quadrant of the
return value for double and float data types, respectively.
Error (due to roundoff)
When P stands for the number stored in the computer in place of pi = 3.14159 26535 89793 23846 26433 ... . and "trig" stands for one of
"sin", "cos" or "tan", then the expression "trig(x)" in a program actually produces an approximation to trig(x*pi/P), and "atrig(x)"
approximates (P/pi)*atrig(x). The approximations are close.
P differs from pi by a fraction of an ulp; the difference is apparent only if the argument x is huge, and even then the difference is
likely to be swamped by the uncertainty in x. Every trigonometric identity that does not involve pi explicitly is satisfied equally well
regardless of whether P = pi. For example, sin(x)**2+cos(x)**2 = 1 and sin(2x) = 2sin(x)cos(x) to within a few ulps regardless of how big
x is. Therefore, the difference between P and pi is unlikely to effect scientific and engineering computations.
Return Values
All the double functions return NaN if NaN is passed in.
If |x| > 1 then (x) and (x) will return the default quiet NaN.
The function defines (0,0) = NaN.
See Also
hypot(3m), math(3m), sqrt(3m)
RISC sin(3m)