10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello ,
I am trying to run a NetBackup command in remote server. Also this command can only be run by root so I am using sudo . Also I want the output of the command locally in a file.
The below command asked for password , ran successfully and showed Output on my local server screen
... (2 Replies)
Discussion started by: rahul2662
2 Replies
2. Shell Programming and Scripting
Hey Lads,
I have a shell script on a remote Server X that i need to execute from Server A. the script executes fine locally but remotely does not. It appears the script on the remote machine is calling another shell script which only has an array defined . Please see below the errors.
... (10 Replies)
Discussion started by: Irishboy24
10 Replies
3. Shell Programming and Scripting
Hi all,
Today I want to write a script to run the commands remotely.
If I run the command as follows:
ssh <user>@<ip> 'ls; pwd'
it works fine.
But when I want to use ssh to set view in clearcase, it will lose the response. as follows
ssh <user>@<ip> 'cleartool setview <view_name>; pwd'... (1 Reply)
Discussion started by: Damon_Qu
1 Replies
4. Shell Programming and Scripting
Hi,
in the below command, i export a value to a variable which later is used by the script, however i dont see the exported value is actually been exported.
ssh user@host "export var=/path/ ; cd /path/ ; ./script"
how can i use the above command with proper value of var remotley (7 Replies)
Discussion started by: suraj.sheikh
7 Replies
5. Programming
Hello experts
I want to execute a awk command, which reads from txt files and sums the numbers from the first column for those listed only inside a <init> block -- The awk command is like
awk '/<\/?init>/{x = !x}x{a++}x && a > 2{sum+=$1}END{printf"%E" "\n", sum}
So, I want to execute... (2 Replies)
Discussion started by: Alkass
2 Replies
6. Solaris
Hi,
What I would like to do "securely" is the following.
From one central server invoke a script that does the following.
--Store user/name passwords. (password possibly encrypted in config file)
--From the central server invoke a privileged command (i.e. route add) on multiple... (1 Reply)
Discussion started by: topstuff
1 Replies
7. Shell Programming and Scripting
If I run this
# ssh remote-server 'du -sk /usr/platform/`uname -i`/'
174 /usr/platform/SUNW,Sun-Fire-V245
I get my output just fine,
However, if i try to do the same but populate a local variable within my script called for example 'result'
#!/bin/ksh
result=`ssh remote-server... (3 Replies)
Discussion started by: hcclnoodles
3 Replies
8. Shell Programming and Scripting
Hi there
I am trying to add up the disk space used on a remote linux box but am falling at the first hurdle i.e isolating the 'space used' column with df -k on the remote box
if i run this, i get the df -k output as expected
# rsh remote-server 'df -k|grep sd|grep -v boot'
/dev/sda3 ... (8 Replies)
Discussion started by: hcclnoodles
8 Replies
9. Shell Programming and Scripting
Hi,
can any one of you help me how to run sudo commands/scripts remotely... (2 Replies)
Discussion started by: pvamsikr
2 Replies
10. Shell Programming and Scripting
Hi All,
I have a script to be executed in another machine. I connect to that machine from another server as a root ( this is the only configured access, as i cannot log in as a normal user). After that I have to switch to a normal user and that I can be able to executge that script. But all this... (12 Replies)
Discussion started by: elthox
12 Replies