Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: Linien
11,690
Posted By Linien
I tried this with my server and it works. sh...
I tried this with my server and it works.

sh -x sshtest.sh 192.168.0.99 /backup/scott/data
++ ssh 192.168.0.99 -p 3344 stat -c %G /backup/scott/data/FILE
+ group=users
+ echo users
users
I...
11,690
Posted By Linien
Thanks for your time. Ok i changed the code...
Thanks for your time.

Ok i changed the code to following:


ssh -t -t $1 -p 3344 "stat -c %G $cpath/FILE" > group.log

group=`cat group.log`

echo $group

ssh $1 -p 3344 "chown $2:$group...
11,690
Posted By Linien
chown remotely via ssh / invalid group
Hi,

i have a problem with a shell script. I need to change the owner and group of a file on a remote machine.

I tried to use ssh but have some problems.

The code:

group=`ssh -t -t $1 -p...
2,145
Posted By Linien
Logfile analyse | problem with regex
Hello there,

i am trying to write a shell script to analyse some of my log files.
I want the script to check if there is a logfile from yesterday or today (some times the script that creates the...
Showing results 1 to 4 of 4

 

Featured Tech Videos

All times are GMT -4. The time now is 06:19 PM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy