Search Results

Search: Posts Made By: little_wonder
22,445
Posted By little_wonder
Still Not Working
Hi Vbe,

Thanks for the solution..

I have tried the script as of your solution.

But, still it is not waiting for the user to enter the input.
please verify my script below and please...
22,445
Posted By little_wonder
Thank you for your responses. But, I am...
Thank you for your responses.

But, I am looking for the script to do the below requirement

sqlplus -s uname/pwd@samplDB << EOF

set heading off
set feedback off

ACCEPT X PROMPT 'ENTER...
22,445
Posted By little_wonder
SQL PLUS Command 'ACCEPT' is not waiting for user input with sh shell script
Dear All,

The sqlplus 'Accept' command is not waiting for user input when I include the command within a shell script.

Note: The 'Accept' command is working fine if I execute it in a SQLPLUS...
2,440
Posted By little_wonder
Thank you so much for both of your responses. ...
Thank you so much for both of your responses.
:b:
2,440
Posted By little_wonder
clarification Required in Write command
Hi All,
can you please help me to get clarified about the 'write' command.

I have a script that sends a content of a file msg.txt to other user 'User B' using 'write' command.

Script:...
2,255
Posted By little_wonder
how to get the most recent file that contains a specific string
Hi All,

I wish to get the most recent file from a dir which contains a specific string.

for example, in a dir sample/ , i have 3 files
file1.txt -- contains 'good'
file2.txt -- contains...
3,746
Posted By little_wonder
display 5 lines from the particular text
Hi All,
please help me to display 5 continious lines from a particular text.

my file is as below.

file1.txt
------
Good
1
2
3
4
5
luck
1
2
3

I want to diplay 5 lines from the...
3,160
Posted By little_wonder
cursor positioning
Hi All,

please help me to know how to move the cursor to the desired position?

For example, in a shell script, I am displaying
echo "\t Enter your Name:"

please help me how to...
4,825
Posted By little_wonder
Hi ranjithpr, Thanks for your answer. But,...
Hi ranjithpr, Thanks for your answer.

But, the sudo command is restricted in my server.

Can you pls brief me how can i configure suders. where the suders available.

Meanwhile, I have...
4,825
Posted By little_wonder
Hi ryandegreat25,, Thanks for your response... ...
Hi ryandegreat25,, Thanks for your response...

I have written my shell script in user A.. I have provided that script for userB.

I would like to provide only the execute permission to userB.. ...
4,825
Posted By little_wonder
How can I send the input of a read line command through a shell script
Hi All,

I wish to automate the unix command 'su' through a shell script.

I would like to pass the content of a file as password to 'su' command.

My script is as below,

#! /bin/sh

su...
7,245
Posted By little_wonder
I could not receive the mail sent from the unix server using 'mailx'
Hi All,

I have sent a mail to my gmail id using the below command.

echo " " | mailx -s "sub" myid@gmail.com


I didn't get any error notification. But still I didn't receive that mail...
3,079
Posted By little_wonder
How can I automate a script?
Hi All,

Can I automate a script when some one trying to 'vi' (open) a file.

For Example, I am having a file named 'SecuredShell.sh'.

when a user types " vi SecuredShell.sh " in unix command...
4,494
Posted By little_wonder
Thank you so much for all of your answers... ...
Thank you so much for all of your answers...

Well.. I would have make my requirement bit clear..

I have my script in a common folder.

I want to secure my script by viewing(as well as...
21,351
Posted By little_wonder
still I have the problem with sqlplus command inside 'if'.. pls help me..
Hi Panyam/Rakeshawasthi and All,

I have tried the 'sqlplus statement' inside 'if'. but i got the same error.

when i tried the same sqlplus without 'if' the query run perfectly.

I really...
4,494
Posted By little_wonder
Can I set Password to open my shell script?
Hi All,

please help me on how to secure my shell script?

I chnanged it to read-only mode using 'chmod'.

but still i would like to set password for open the script.

Is there any way?...
2,010
Posted By little_wonder
Accessing a variable from another script
Hi,
Can anyone assist me on how to access a variable in a shell script from another script.

for ex,

Script-1
-------

#! /bin/sh

c=10


Where as, i would like to access the velue of...
21,351
Posted By little_wonder
Hi Panyam/Rakeshawasthi, Thank you for the...
Hi Panyam/Rakeshawasthi,

Thank you for the assistance.
The 'spool' works fine for my requrement.

one more help please!!
please let me know, Can I use sqlplus command inside if condition.

i...
21,351
Posted By little_wonder
How to Format the result driven from a SQL Query
Hi All,

I want to format the result driven from the query into neat format.
For example pls find the below code,

#! /bin/sh

result='

sqlplus -s uname/passwrd@DBname

select...
13,616
Posted By little_wonder
how to FTP a file from the local folder to unix server
Hi All,
please help me to write a shell that ftp a file which is in the local (C:\) drive to a Unix server.
Where as i know the IP for the Unix server.

i could do this process by using ftp...
2,979
Posted By little_wonder
Hi vidyadhar85, Sorry if my question confuse...
Hi vidyadhar85,

Sorry if my question confuse you..
actually i want to pass an array as argument..
please find the script named small.sh.. This script is to find small no from a list..

i want...
2,979
Posted By little_wonder
How to pass an array as arg to a script..
Hi,

Please guide to pass an array as a arg to a script...


for example,

I have a script small.sh to find the small no of given arg as below...

#! /bin/sh

# this script is for finding...
2,509
Posted By little_wonder
How to retrieve command line args one by on.
Hi,

I have to store all the command line arguments into an array.

I have the following code.

**********************
#! /bin/sh

set -A arr_no_updates

i=1
while [ i -le $# ]
do
...
168,586
Posted By little_wonder
use of '$?' in unix shell script
Hi All,

Please explain me the use of '$?' in unix.

I've tried the below code.

#! /bin/sh

echo '$#' $#
echo '$@' $@
echo '$?' $?

when i pass the arguments 1 2 3

i got the below o/p...
15,105
Posted By little_wonder
How to print the number of lines from a file, the starting string should be passed`
Hi ,

I have file, which has the below content:

line 100
a
b
c
d
line300
a
s
d
f
s
line200
a
s
d
a
Showing results 1 to 25 of 31

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