Search Results

Search: Posts Made By: blacksteel1988
Forum: AIX 09-25-2011
19,950
Posted By muzahed
Guys, the /var/tmp was missing.. :) vi works fine...
Guys, the /var/tmp was missing.. :) vi works fine after i created /var/tmp with 755 permissions.. Thanks a ton for helpin me solve this unusual problem. :)
Forum: AIX 09-23-2011
19,950
Posted By balumurugesh
vi not functioning
hi :)
login as root
#ls -ltr
check the /tmp permission,owner & check the stickybit is set....
drwxrwxrwt 23 bin bin 8192 Sep 23 16:30 tmp
then
cd var
#ls -ltr
Check the...
Forum: AIX 10-16-2013
18,762
Posted By RudiC
The tape archive will be in the file given to the...
The tape archive will be in the file given to the f option. You need to gzip that one, not stdout which will contain a log of tar's actions but no meaningful data. By adding the z option, tar will...
Forum: AIX 10-16-2013
18,762
Posted By CarloM
tar -cvf - -X /jfma/test1/excludefile /jfma |...
tar -cvf - -X /jfma/test1/excludefile /jfma | gzip -c > /varios/restore/test.tar.gz
Forum: AIX 02-23-2012
99,588
Posted By admin_xor
ps -ef | grep admin | awk '{ print $2 }' | xargs...
ps -ef | grep admin | awk '{ print $2 }' | xargs kill -9


or


kill -9 $( ps -ef | grep admin | awk '{ print $2 }' )
208,271
Posted By zxmaus
well you should first check which processes the...
well you should first check which processes the user runs ...
ps -aux | grep {user}

and if you're happy to kill all of them, kill `ps -aux | grep {user} | awk '{print $2}'` or the harder way...
208,271
Posted By zxmaus
Hi, on AIX, become this user and issue kill...
Hi,

on AIX, become this user and issue kill -9 -1 ... that kills everything owned by the user - including his shell.

Don't do it as root and be very very careful as dba !!!!!

Kind regards...
9,338
Posted By Yoda
Use trim function to remove all leading and...
Use trim function to remove all leading and trailing spaces:
select trim(count(*)) FROM
9,338
Posted By Yoda
Replace following lines: set serveroutput on ...
Replace following lines:
set serveroutput on
set feedback off
set head off
with below line:
set echo off head off feed off pagesize 0 trimspool on linesize 1000
in your file: query1.sql
1,250
Posted By joeyg
Take a look at if [ $? -gt 10 && -le 20 ] I...
Take a look at
if [ $? -gt 10 && -le 20 ]
I think
if [ $? -gt 10 && $? -le 20 ]

However, how can something be gt 10 and lt 20
with your next command checking for it gt 21?

The && is for...
1,250
Posted By PikK45
I agree with Yoda here. :) You can also use,...
I agree with Yoda here. :)

You can also use, if [ $VAR -gt 10 -a $VAR -le 20 ]
1,250
Posted By Yoda
Why are you using the special shell variable $?...
Why are you using the special shell variable $? that holds the exit status of last command executed?

That is not correct. It will be zero if the command executed successfully otherwise non-zero....
4,226
Posted By Corona688
That's not your input or your output, that's your...
That's not your input or your output, that's your script.

The input is what the script reads.

The output is what you want your script to print.

Yes, if all you want to do is change the...
134,219
Posted By frustrated1
Thanks - I have found a way myself now... ...
Thanks - I have found a way myself now...


datestamp=`date '+%Y%m%d'`
yest=$((datestamp -1))



Cheers!!
4,226
Posted By chihung
If you are using Linux, you can grep --color...
If you are using Linux, you can grep --color successfully /variosnew/fullexports/IMAGES/full_imp_images.log

For more colors, pls refer to Chi Hung Chan: Give Your Shell Some Colours...
4,226
Posted By Corona688
The cat does nothing, the cat is completely...
The cat does nothing, the cat is completely useless there and can be thrown away. It's grep that does all the work.

LINE=`grep successfully /variosnew/fullexports/IMAGES/full_imp_images.log`
...
25,118
Posted By Chubler_XL
Don't rely on $HOME either, put the full path to...
Don't rely on $HOME either, put the full path to the profile script you want to use:

#!/bin/bash
. /home/blacksteel1988/.profile
# rest of your script here
22,124
Posted By mschwage
What does your cron entry look like? Why are...
What does your cron entry look like?

Why are you using nohup? Nohup is for if you are logged in, and don't want the job to exit when you log out, if you start the job from a terminal.

Cron has...
Showing results 1 to 18 of 18

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