Search Results

Search: Posts Made By: lookinginfo
4,190
Posted By ni2
man chmod ~/case$ tree . ├── 1 │ ├──...
man chmod

~/case$ tree
.
├── 1
│ ├── file.sh
│ └── file.txt
├── 2
│ ├── file.sh
│ └── file.txt
└── 3
├── file.sh
└── file.txt
~/case$ chmod -c -R 744 {1..3}/*.txt
mode...
4,190
Posted By Don Cragun
It is even more efficient to leave xargs out of...
It is even more efficient to leave xargs out of the mix and let find invoke chmod with multiple operands by using + instead of \; to terminate the list of -exec arguments:
find /local/home/app/cases...
4,190
Posted By mirni
You missed the type: find...
You missed the type:

find /local/home/app/cases -iname '*\.sh' -type f -exec chmod -c 744 {} \;
Escaping the period is not really necessary, and if there is a lot of files, using xargs is more...
4,190
Posted By in2nix4life
find /local/home/app/cases -iname '*\.sh' -type...
find /local/home/app/cases -iname '*\.sh' -type -exec chmod -c 744 {} \;
2,149
Posted By vgersh99
./plist -P $proc | awk '$3=="MODEL" {print...
./plist -P $proc | awk '$3=="MODEL" {print "./swutil PROC RELEASE " p " " $1 }' p="${proc}" >> release.txt
2,149
Posted By yinyuemi
try single quote around the $var '$proc' ...
try single quote around the $var
'$proc'

or this way:

awk -v var=$proc '{if ($3=="MODEL") print "./swutil PROC RELEASE var" $1 ";}'
5,783
Posted By sk1418
how about make a link ? ln -s...
how about make a link ?
ln -s /app/logs/error.log /var/error.log

hard/soft link depends on your requirement.
5,783
Posted By Shell_Life
This can be done in a variety of ways. One...
This can be done in a variety of ways.

One of the quick and easy way:
tail -f source_file > dest_file

This process must be continuosly running.
85,994
Posted By Scott
Does ~mike/.profile on server2 accept arguments? ...
Does ~mike/.profile on server2 accept arguments?

/local/home/mike/software/bin/start is one in the example you quote.


Local Command (ssh) Remote Command Args to Remote...
85,994
Posted By Scott
But you should find it under /tmp on server1. ...
But you should find it under /tmp on server1.

Try quoting the command (including the redirection) to make the whole thing run on server2:

ssh mike@server2 "echo test >> /tmp/mike.txt"
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 10:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy