Search Results

Search: Posts Made By: pspriyanka
1,668
Posted By Don Cragun
This is more simply and more correctly done with:...
This is more simply and more correctly done with:
ps -ef | grep -q 'abc[.]sh'
which will give you a zero exit status if one or more copies of processes are running with a name containing the string...
14,722
Posted By gull04
Hi, Without a backup there is not really any...
Hi,

Without a backup there is not really any way to recover or list the deleted files, once you delete files in Unix/Linux recovery is very difficult. I have had some luck with both "photorec" and...
1,668
Posted By andy391791
ps -ef | grep abc.sh | grep -v grep If...
ps -ef | grep abc.sh | grep -v grep

If there is an entry then the job is still running

If there isnt then the job has completed
14,722
Posted By bdittmar
Deleted is deleted
Hello,

in *nix deleted is deleted, no recycle bin like WIN !

Regards
1,189
Posted By vbe
If you are not the owner, there is little chance...
If you are not the owner, there is little chance of success unless you know how to become or get root privilege...
14,722
Posted By Corona688
Generally, you can't.
Generally, you can't.
16,491
Posted By rangarasan
BC
Hi,

Try this code,



if [ $(echo "$i > $b"|bc) -eq 1 ]

instead of below code

if [ $i -gt $b ] ; then



Cheers,
Ranga:)
2,885
Posted By polineni
for i in `cat abc.txt` do if [ $i -gt 1000 ] ...
for i in `cat abc.txt`
do
if [ $i -gt 1000 ]
then
echo " $i is greater than 1000"
exit
fi
done
2,510
Posted By gary_w
Here's an example that works using SQL/Plus...
Here's an example that works using SQL/Plus against an Oracle database. The same principle could apply here. Namely construct the query so the output looks like "variable=<selected_value>" then eval...
2,510
Posted By itkamaraj
Try this... result=$(mysql -N -r -B -u $user...
Try this...
result=$(mysql -N -r -B -u $user $db -e "select count(*) from orders where OrderTimestamp > 20110819")
2,510
Posted By ahamed101
or alternatively you can echo $result | awk...
or alternatively you can
echo $result | awk '{print $2}'


--ahamed
2,510
Posted By latika
can you just try this, before the query can...
can you just try this,
before the query can you just include this line,
"set heading off"
1,576
Posted By sulti
Most probably - script is trying to make...
Most probably - script is trying to make directory somewhere, where it has no permissions to do that.
Try adding
cd /home/user01/exercise
before mkdir.
And change, just for test, cron time to...
Forum: Programming 07-08-2011
2,206
Posted By durden_tyler
Your problem boils down to converting a string...
Your problem boils down to converting a string like this -


2011-05-20 07:38:28


to this -


2011-05-20


After you capture the value of $batch_date and before you add it as a hash key,...
Forum: Programming 07-07-2011
9,364
Posted By pludi
Are you checking if the file you're trying to...
Are you checking if the file you're trying to open actually exists, and that you have read permissions on it?

Some thumb rules I use that can be applied here:
use strict;
use warnings;
3...
Forum: Programming 07-07-2011
9,364
Posted By itkamaraj
seems, your file handler is not opened the file...
seems, your file handler is not opened the file itself.

replace your open statement and run the code


open OR, $ARGV[2] or die "can't open $ARGV[2]: $!\n";
2,096
Posted By michaelrozar17
Given requirement does not look precise. If you...
Given requirement does not look precise. If you just need last updated date then use tail command along with sed command. The below would fetch all the available date and time patterns from your log...
Showing results 1 to 17 of 17

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