Search Results

Search: Posts Made By: mercy
34,024
Posted By mercy
prompt in terminal sftp...
prompt in terminal

sftp login@remote_sftp_server


enjoy
https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/s2-ssh-clients-sftp.html
13,663
Posted By mercy
if file size is getting different - file changed....
if file size is getting different - file changed.
wget doesn't change downloaded file by itself

if page some times differ (i.e. it has dinamic content) - you must find enother way to monitoring...
Forum: Ubuntu 11-29-2012
2,097
Posted By mercy
Do you read documentation from that site? Do...
Do you read documentation from that site?
Do you have questions?
13,663
Posted By mercy
some thing like first: wget...
some thing like
first:
wget http://domain.com/path/to/page.html
md5 page.html > previous_md5
rm page.html


then run script (from cron)

#!/bin/sh
wget http://domain.com/path/to/page.html...
18,278
Posted By mercy
Then you do ls in first time, you read directory...
Then you do ls in first time, you read directory desctiptor.
If dir contain maaaaaany file (>10k) - this process is not fast.
In next requests ls use cached directory desctiptor and ls work fast
5,022
Posted By mercy
Hm.. There are no global field delimiter for...
Hm..

There are no global field delimiter for all applications
And in many cases you cat set delimiter by hand
i.e.

# All string is "first" field. Becouse default delimiter is 'tab' character...
Forum: BSD 04-03-2009
5,985
Posted By mercy
hi, look in the man
hi,
look in the man
68,391
Posted By mercy
another way for bash/csh for i in `cat...
another way for bash/csh

for i in `cat input_file` ; do
echo $i
done
2,029
Posted By mercy
show your OS type and modem model.
show your OS type and modem model.
5,272
Posted By mercy
Your variables (OMNIDEX_HOME and OMNIDEX_HOME)...
Your variables (OMNIDEX_HOME and OMNIDEX_HOME) workable during script execution.
When script is done you data will be lost.
Couse you cannot change meaning of variables of parent shell
20,422
Posted By mercy
ok show input of $ id then $getfacl...
ok
show input of
$ id
then
$getfacl "ab123 v2.12.09 with revision marks.doc"
20,422
Posted By mercy
which OS do you use? Solaris?
which OS do you use?
Solaris?
2,723
Posted By mercy
if you have file with ip address (i.e. ip.txt)...
if you have file with ip address (i.e. ip.txt) you can use it in your script.
write `cat ip.txt` instead of ip address in ftp command (don't change back quotes)
3,490
Posted By mercy
Ok. Which OS do you use? (command syntax...
Ok.
Which OS do you use?

(command syntax may be different in several OSes. My example was to FreeBSD)
2,359
Posted By mercy
horror http://vagrant.ru/images/smilies/shock.gif...
horror http://vagrant.ru/images/smilies/shock.gif http://vagrant.ru/images/smilies/crazy.gif http://vagrant.ru/images/smilies/lol.gif
3,490
Posted By mercy
change this to ftp...
change this to
ftp ftp://$user:$pass@$host/path_to_file
where user, pass and host -- your variables
29,173
Posted By mercy
time_start=`date +%s` script body ...
time_start=`date +%s`

script body

time_end=`date +%s`
time_exec=`expr $(( $time_end - $time_start ))`

echo "Execution time is $time_exec seconds"
29,173
Posted By mercy
you mast set time_end after ending of script...
you mast set time_end after ending of script body.
for example

#!/bin/sh
time_start=`date '+%T%t%d_%h_06'`
echo "$time_start"

script body

time_end=`date '+%T%t%d_%h_06'`
echo "$time_end"
Forum: BSD 09-18-2006
3,359
Posted By mercy
Settint PermitRootLogin to yes -- is a very bad...
Settint PermitRootLogin to yes -- is a very bad idea.
NEVER doing it.
for ssh use su/sudo
for scp use usual account.
5,295
Posted By mercy
syslogd is running?
syslogd is running?
29,173
Posted By mercy
you can capture begin time and end time. and then...
you can capture begin time and end time. and then calculate execution time =)
2,359
Posted By mercy
Which OS do you use? for freebsd you can...
Which OS do you use?

for freebsd you can replace

by d=`date -v -1d +%d`
51,695
Posted By mercy
if you want get server name you can use $...
if you want get server name you can use
$ nslookup -t=ptr server_ip
but back resolve must be correct.

If PTR doesn't set -- you cann't get correct server name

there are several methods to...
Forum: Gentoo 09-12-2006
15,354
Posted By mercy
I disagree. RPM is good. But. For each OS...
I disagree.

RPM is good.
But. For each OS you must use OS's own packet manager.

for example:
pkg_add and ports in FreeBSD (rpm works only in linux-compatability mode)
pkgadd in Solaris...
2,126
Posted By mercy
sorry ssh user@custserver chmod 644...
sorry

ssh user@custserver chmod 644 /custdirectory/file_name_*
Showing results 1 to 25 of 49

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