Search Results

Search: Posts Made By: mmunir
55,159
Posted By mmunir
Thanks to all of you for the help. Following is...
Thanks to all of you for the help. Following is the final command:

find . -name "*.log" -mtime +30 -a ! -name "SQLUpdate.log" -a ! -name "updated_days*" -a ! -name "qadirectsvcd*" -exec rm -f {} \;
55,159
Posted By mmunir
To delete logs older than 30 days
I want to write a shell script that deletes all log files in a directory that are older than 30 days except for 3 files:

I am using the following command:
find /tmp/logs -name "*.log" -mtime +30...
29,524
Posted By mmunir
Thanks for the reply. but i want to find the...
Thanks for the reply.

but i want to find the problem in the script mentioned in my question.

Moreover, i am not trying to connect as sysdba.
29,524
Posted By mmunir
error running sqlplus from shell file
I am running a shell file following script on bash shell in solaris 10

(
echo abc@orcl
echo abc
echo "set feedback off"
echo "truncate table SIndexDataTypeHst1_changes;"
) |...
4,176
Posted By mmunir
how to display multiline text
I am writing script that can run on solaris 10, Linux Fedora and windows taht has cybwin installed.

I want to display a variable containing muli-line text.

using echo command, the variable...
Forum: Solaris 02-02-2009
1,786
Posted By mmunir
could not send mail
i am sending message to my gmail account using mailx command but getting the following error.

550 5.1.2 <xyz@gmail.com>... Host unknown (Name server: mailhost: host not found)

can anybody help...
Forum: Solaris 01-27-2009
3,017
Posted By mmunir
I executed the following command. echo "my...
I executed the following command.
echo "my messgae" | /usr/bin/mailx -s "My Subject" xyz@gmail.com

the command executed successfully. But i could not receive my email at the destination.
Forum: Solaris 01-26-2009
3,017
Posted By mmunir
email configuration problem
I am using solaris 10 on x86.

I have a requirement to send email using shell script.

User can configure any email address like xyz@yahoo.com or xyz@hotmail.com in the configuration file.

I...
7,282
Posted By mmunir
tr command is available or not
To find whether tr command is available or not on Solaris 10, i am using the following script

filename="/usr/bin/tr"
if ! [ -s $filename ]; then
echo "ERROR: tr command not found in current...
13,428
Posted By mmunir
It is below: which $ORACLE_HOME/bin/sqlplus...
It is below:

which $ORACLE_HOME/bin/sqlplus > /dev/null 2> /dev/null

if [ $? != 0 ]; then
echo "ERROR: Either sqlplus is not available on this machine or ORACLE_HOME is configured...
13,428
Posted By mmunir
how to verify sqlplus not installed on solaris
i want to write shell script that exit by displaying error if sqlplus is not installed.

The platform is oracle10g on solaris sparc.

I tried the which sqlplus command, but it returns errorcode 0...
4,189
Posted By mmunir
script to find whether shell command is available
I am running shell scripts on windows using Cygwin tool.

In my shell scripts, i want to add an error check, that verify whether a certain command is available or not.

For example if SED comamnd...
14,311
Posted By mmunir
execute shell file on DOS prompt
I have installed cygwin on my computer having windows 2003 server as operating system.

The following command works fine on DOS console:

bash launch_update.sh

Is there any way, that i could...
4,358
Posted By mmunir
EOF creating problem
In shell file, i am writing following statement:

cat > File1.sh <<EOF

set feedback off
set serveroutput on

cat > File2.sh <<EOF
contents of second file
EOF
Contents of First file

EOF...
2,666
Posted By mmunir
Thanks for reply! The problem is that ...
Thanks for reply!

The problem is that

The following statement has already been defined in a file and i cannot change it.

A="basic advance"

To change it into your style, i would do
...
2,666
Posted By mmunir
nested loop problem
Please see the following script.

basic="a b c"
advance="d e f"

A="basic advance"

for g in $A
do
echo $g
done

The result would be obviously
basic
advance

I want to ask how can...
6,429
Posted By mmunir
! operator in variable
Can any body kindly tell me the purpose of ! operator in the following expression:

y=${!x}

Actually when i execute this statement on my solaris 10 terminal, i get empty output.
12,636
Posted By mmunir
Purpose of 2>&1 in the command
Can any body kindly tell me what is the purpose of 2>&1 in the following commands.

nohup ./append_import.sh 1 > import1.out 2>&1 < /dev/null &
nohup ./append_import.sh 2 > import2.out 2>&1 <...
1,924
Posted By mmunir
thanks for reply
Thanks all of you for helping me.

>what is it that you're trying to achieve?

Actually, i am to pass the output of this command to SED to replace a variable PATH with the output of this command.
1,924
Posted By mmunir
sed command not running
I am using solrais 10 on sun sparc.

The following command executes successfully
echo c:/test.txt | sed -e 's/\//\\\//g'
But when i executes the following command
x=`echo c:/test.txt | sed -e...
Showing results 1 to 20 of 20

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