Search Results

Search: Posts Made By: Nagaraja Akkiva
2,854
Posted By RudiC
Did you consider ssh?
Did you consider ssh?
2,854
Posted By linuxrulez
You can use SSH to do this Syntax: ...
You can use SSH to do this
Syntax:
sshusername@ipaddress ‘command’
ssh username@domainname ‘command’
ssh username@domainname ‘command1 | command2′


Examples

ssh tts@192.168.1.9 ‘df -Th’...
897
Posted By hanson44
Maybe the server was down when the cron job was...
Maybe the server was down when the cron job was supposed to run?

I would just say > /dev/null but it doesn't matter.

/var/log/syslog or similar logfile maybe with different name on different...
1,264
Posted By balajesuri
egrep -v...
egrep -v "^\.\.\.\.\.|cksum|Don't|data|source|target|unload|unloading|nzload"
1,846
Posted By ygemici
maybe ODS_Load closes the while assign to...
maybe ODS_Load closes the while assign to CONFLICT val
can u try this.
[ ! `pgrep -f "ODS_Load $1"` ] && ODS_Load $1 &
26,477
Posted By MacMonster
Just a reminder: Your command may fail with...
Just a reminder:

Your command may fail with "argument list too long" error if there is a lot of files in the directory.

A more fail safe way is:


find "/path" -maxdepth 1 -type f -name...
26,477
Posted By ieth0
if [ "`find -mtime +2`" = "" ];then echo...
if [ "`find -mtime +2`" = "" ];then
echo "NOFILE TO DELETE"
fi
1,470
Posted By Chubler_XL
Allowing tar to be run as root is a big security...
Allowing tar to be run as root is a big security hole, I'd advise against that.

Funny thing is I can't get tar to change owner of .tar file as you describe. What OS are you running and can you...
1,470
Posted By ahamed101
You can confiure sudoers to do the job. ...
You can confiure sudoers to do the job.


sudo tar -rf TarFileName b.txt


The above command will run with root permissions.

You will have to add the following line in the /etc/sudoers...
821
Posted By Skrynesaver
1. a) There are a number of core modules which...
1. a) There are a number of core modules which provide reliable date manipulation and which have dealt with the edge cases. I would advise using them in preference to reinventing the wheel.
b) The...
1,896
Posted By kumaran_5555
I have already given one logic for capturing...
I have already given one logic for capturing start date to end date in the previous post. Now you can use those dates one by one in your oracle query.

If this isn't your requirement, then give us...
3,857
Posted By pravin27
You can try like this as well #!/usr/binperl ...
You can try like this as well
#!/usr/binperl

use Time::Local;

$start_date=shift;
$end_date=shift;

chomp($start_date,$end_date);

@dt1=split(/-/,$start_date);
@dt2=split(/-/,$end_date);...
3,857
Posted By fpmurphy
Change 2000 to 1900 in the code example. ...
Change 2000 to 1900 in the code example.

Pravin27, your example suffers from this error also.
3,857
Posted By fpmurphy
#!/usr/bin/perl -w use strict; use...
#!/usr/bin/perl -w

use strict;

use DateTime;
use DateTime::Format::Strptime;

my $format = new DateTime::Format::Strptime ( pattern => '%d-%b-%Y', time_zone => 'EST', );
my $start =...
36,111
Posted By Smiling Dragon
I'd think you want 'u' (update existing) instead...
I'd think you want 'u' (update existing) instead of 'c' (create new) in your flags for tar.

As a little aside, you may also want to drop the z flag and pass the tar through a compression program...
1,896
Posted By kumaran_5555
For item number 1, I have already given a...
For item number 1, I have already given a solution which worked well for me while providing start date and end date.

For 2,
you could use isql to connect to your DB and execute a query which will...
Showing results 1 to 16 of 16

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