Search Results

Search: Posts Made By: whizkidash
5,545
Posted By Neo
Maybe something like this, just an example, in...
Maybe something like this, just an example, in the script:

echo $(date +%s) >> /tmp/mylogfile.txt



# echo $(date +%s) >> /tmp/mylogfile.txt
# cat /tmp/mylogfile.txt
1561379037
# echo...
987
Posted By RudiC
Did you consider a "here string" (bashism) or a...
Did you consider a "here string" (bashism) or a "here document"? Both are available on several recent shells, but not on sh
987
Posted By agent.kgb
quick check of manual shows that ndb_mgm...
quick check of manual shows that ndb_mgm understands commands from command line without I/O redirection:


ndb_mgm -e "SHOW"
1,897
Posted By Corona688
Also, you don't cram passwords into ssh, you use...
Also, you don't cram passwords into ssh, you use ssh keys (http://www.linuxproblem.org/art_9.html).
1,897
Posted By blackrageous
You can do something like this.. for ip_addr...
You can do something like this..

for ip_addr in $(cat ip_abc1); do
ssh ${ip_addr} <<EOD
<command>
<command>
EOD
done
2,696
Posted By gandolf989
Perl is probably the most robust way to send...
Perl is probably the most robust way to send emails with attachments. You need the mime:lite perl utility, but it is well documented.

MIME::Lite - search.cpan.org...
3,695
Posted By junior-helper
Try adding echo "batch $ip_addr begins" before...
Try adding echo "batch $ip_addr begins" before the ssh command and

echo "batch $ip_addr ends" after the ssh command.
4,578
Posted By RudiC
Define the alias in your script before using it....
Define the alias in your script before using it. Or, call the aliased command itself.
Showing results 1 to 8 of 8

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