Search Results

Search: Posts Made By: Pandee
Forum: AIX 04-24-2015
14,926
Posted By Pandee
Elseif & for condition in AIX
I'm using the below statements in my script

if [$selection -ge 0] && [$selection -le 7] then
sqlplus sysadm/abcdefgh12@${dbarr[idx]} @/u1/scripts/ResetPswd.sql
elif [$selection == 8] then
...
Forum: AIX 09-17-2014
5,137
Posted By Pandee
Sorry for bugging. There was mistake from my...
Sorry for bugging. There was mistake from my side. The TUXCONFIG value was not properly set. It's been corrected and is working now.

Now the problem is that, when scheduled through the crontab,...
Forum: AIX 09-16-2014
5,137
Posted By Pandee
Syntax to execute tmadmin command
Could you please help me with the syntax to execute tmadmin command in AIX server?

I have a script that works fine in Linux (OEL). Below is the one :

tmadmin 2> /dev/null > /tmp/psstat1 <<EOF...
Forum: AIX 07-30-2014
2,600
Posted By Pandee
Get details of the existing configured printer
I need to get the domain under which a printer is configured in an AIX machine. I have the IP address of the printer.
Could you please help me with that?
1,773
Posted By Pandee
Thanks Alister. Have taken your inputs and made...
Thanks Alister. Have taken your inputs and made the changes as needed.
2,316
Posted By Pandee
Thanks Alister and all. You were dead right. I...
Thanks Alister and all.
You were dead right. I had edited in Windows. After I edited with vi editor, the error never appeared again.
Still the below code did not take any effect :
sed -r...
2,316
Posted By Pandee
[abc@DGDGDGDSH03 scripts]$ /u01/scripts/PITest.sh...
[abc@DGDGDGDSH03 scripts]$ /u01/scripts/PITest.sh > /u01/scripts/PITest.log
: bad interpreter: No such file or directory

PITest.sh has the script that I've pasted earlier in the thread
2,316
Posted By Pandee
GNU sed version 4.1.2 I'm still getting the...
GNU sed version 4.1.2

I'm still getting the same error :
: bad interpreter: No such file or directory
2,316
Posted By Pandee
Pfile is the one that has the data. It has few...
Pfile is the one that has the data.
It has few lines with '-' and 'PRCSINSTANCE', which I'm deleting here with the grep commands.
The other files, I'm using it for temporary storage.
Here I'm...
2,316
Posted By Pandee
Hi in2nix4life, I have a file which is...
Hi in2nix4life,

I have a file which is generated by a program. The file has blank lines at the beginning and end of it. I want that to be removed through program.
2,316
Posted By Pandee
Thanks Pravin. It is still giving the error : ...
Thanks Pravin. It is still giving the error :

: bad interpreter: No such file or directory

Please let me know if I'm missing anything in the code.
2,316
Posted By Pandee
How do I write the output of this to a file? ...
How do I write the output of this to a file?

---------- Post updated at 06:27 PM ---------- Previous update was at 06:22 PM ----------

With the below script also, I'm getting the same error
...
2,316
Posted By Pandee
[Solved] Issue deleting blank line from a file
I'm trying to delete the blank lines from the file $Sfile. tried the below set of commands. Both are giving the same error (: bad interpreter: No such file or directory)

awk 'NF > 0' $Sfile >...
1,773
Posted By Pandee
Thanks Folks!!! With the input you all gave...
Thanks Folks!!!

With the input you all gave I got it working with the below script :

while read line
do
grep -v $line fileB.log > $TEMP_FILE
cat /dev/null > fileB.log
cat...
1,773
Posted By Pandee
Issue deleting all lines (having a specific string) in a file
I'm trying to create a script.

There are 2 files - fileA.log & fileB.log
fileA.log has the below data :
aaaa
cccc
eeee

fileB.log has the below data :
cjahdskjah aaaa xyz ...
2,370
Posted By Pandee
That worked!!! Thanks a ton Corona & folks, for...
That worked!!! Thanks a ton Corona & folks, for the quick response.
2,370
Posted By Pandee
Thanks for your reply Corona. I made the...
Thanks for your reply Corona.

I made the changes as you had pointed out. The error got cleared. Still the condition is not getting satisfied. Below are the exact set of scripts that I'm using :
...
2,370
Posted By Pandee
I tried the below command : case...
I tried the below command :

case "$var1" in abc|pqs|dfgg|dfsf
echo The queue is $Que
;;
esac

It gave the below error :

syntax error near unexpected...
2,370
Posted By Pandee
If a string variable value exists in a set of values
Can some one please help me with the syntax in shell script for the below :

if $var1 exists in ('val1','val2','val3')

I want to execute a set of commands if the value of var1 variable matches...
5,833
Posted By Pandee
I need to delete the files which have the...
I need to delete the files which have the extension as '.abc', and are older than 1 day
5,833
Posted By Pandee
Find command to search and delete files older than 1 days at a desired location
Hello All,

Can someone please help me out in creating the find command to search and delete files older than 1 days at a desired location.

Thanks in advance for your help.
Forum: Solaris 11-06-2012
10,888
Posted By Pandee
Hi Ningy, for using rsync, should I need to...
Hi Ningy,

for using rsync, should I need to install the tool?
I'm working on SunOS 5.10 Generic_144488-10 sun4v sparc SUNW,Sun-Fire-T200
Could you please let me know the procedure to install or...
Forum: Solaris 11-06-2012
10,888
Posted By Pandee
Hi Bipin, Thanks for your quick reply. ...
Hi Bipin,

Thanks for your quick reply.

Actually I want to move a directory as a whole from one server to another server, provided each of the files/sub-directories under that has the same...
Forum: Solaris 11-06-2012
10,888
Posted By Pandee
Need to transfer files between 2 UNIX servers, with same folder permission
I need to transfer directories/files between 2 Unix servers, with same folder permission.
I tried scp, but it retains the the permissions, but changes the owner of the directory/file to the user...
3,929
Posted By Pandee
HI Methyl, Thank you for that. it worked. ...
HI Methyl, Thank you for that. it worked.

But the output is not a aligned one.

Filesystem size used avail capacity Mounted on
/dev/dsk/c1t0d0s0 2.9G 2.3G 497M 83%...
Showing results 1 to 25 of 30

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