Search Results

Search: Posts Made By: sharif
2,506
Posted By sharif
How to alert if no output from tail -f command
Hi Dears,
I am using AWK script to monitor some log files. My awk will get the input from the output of tail -f LOGFILE. (tail -f LOGFILE | myawkanalyzer)

My doubt is, How can I notify, if I...
1,850
Posted By sharif
NAWK array to store lines from huge file
Hi,
I would like to clarify about the NAWK array to store multiple lines from huge file.
The file is having an unique REF.NO, I wants to store the lines (it may be
100+ lines) till I found the...
1,417
Posted By sharif
KSH denial error code?
Hi All,
I am trying to access ISQL via shell script(SSH). It was working fine (the script had permissions to access for ISQL). Occasionally I am getting the denial message. May I know what is...
1,300
Posted By sharif
NAWK - Printing
Hi,
I am searching particular pattern from the big file, If the first column varies, I need to print the previous row from the file. Anybody can help for me????
For eg.
07131:5678:TEST:1000...
1,813
Posted By sharif
How to avoid multiple while loop?
Hi,
How can I avoid multiple 'cat while read ....? in my script.
In my script, I am taking the inputs from the temp text file and doing the
(
cat while read input
do
...
...
done
)
task...
6,081
Posted By sharif
alias command in script
How can I embed alias command inside the unix script?

Script:
echo "...."
...
...
alias aa=/usr/bin/telnet
...
...The above script is not...
30,378
Posted By sharif
tr command
Hi Jim,
It's working fine for a single line. How can I apply this same for multiple lines. For eg. 10000 lines.

I tried, But the output was incorrect.
Can u help me?
30,378
Posted By sharif
tr command for \n to \t
Hi,
How can I transfer the newline char in to tab char?.

For eg.
The text file's content is like this.
123456
xyz\123\kkk.txt

I wanna change like below.
123456 xyz\123\kkk.txt
...
10,931
Posted By sharif
read command (input) inside the while loop
Hi,
'read' command is not working inside the while loop, How can I solve this?

Rgds,
Sharif.
9,708
Posted By sharif
Resize the default window size
Hi,
How can I resize the terminal window's default size in CDE (Solaris)?

Regards,
Sharif.
1,693
Posted By sharif
Trimming the spaces
Hi,
How can I remove the unwanted spaces in the line.
123456 789 ABC DEF. - I wanna remove the sapces in this line, I need the output 123456789ABCDEF.

Pls help me......
2,783
Posted By sharif
Defining window size of telnet / ctelnet
How can I define the size of the terminal window?
If I open multiple windows, it should be opened by these defined sizes.
I need your help in this.

Thanking you in advance.
1,584
Posted By sharif
Resizing of ctelnet window
Hi,
How can I resize the ctelnet window in Solaris?
8,489
Posted By sharif
U can use ifconfig
Hi,
Try ifconfig -a command. It may help u.

Rgds,
Sharif.
Forum: Solaris 04-14-2008
2,294
Posted By sharif
ctelnet - command
Hi,
How can I define the window's size when I use ctelnet command?

For eg. I am opening the cluster windows by using
ctelnet host1 host2..., Here I wanna define the windows's size.
10,520
Posted By sharif
Login and logout time of a session
Hi,
How can I find out the login and logout time of the old UNIX session/user?.
2,625
Posted By sharif
Emdedding my script in to exit command
Hi,
How can I call my shell script, when I execute 'exit' command?
For eg. I am logging out the root login by 'exit' command. My script 'colinfo' shold execute before logging out. I don't want to...
28,736
Posted By sharif
mailx commannd - Mail and Attachment in same mail
Hi ,
I am using mailx command for sending the mails. Rightnow I am sending the attachment (by using uuencode $filename) as a seperate mail.I wanna send the attachment also with the same...
3,197
Posted By sharif
Passing variable
Hi Madhan,
It's working fine. Thank u very much. Can I pass the variable instead of the actual number?.
(NR >= startline NR <= endline).
3,197
Posted By sharif
splitting the files
Hi,
How can i split the big file by the lines?. For eg. I wanna split the file from the line 140 to 1700.
Forum: Solaris 12-23-2007
8,101
Posted By sharif
.logout
I want to execute script while exiting a session, to gather session details. How to implement this in Solaris 10
3,495
Posted By sharif
switch login
Hi,
How can I switch from one login to another login in UNIX. su command is disabled in my environment. Is there any alternate way to login.
27,208
Posted By sharif
Your tips worked fine
Hi porter,
You are correct, I invoked the script by . ./somepat/scriptname. Now I copied the script in the home directory, from where I am executing this script.It's working fine.
27,208
Posted By sharif
This function is from the script only. The big...
This function is from the script only. The big script is having multiple functions. This function is one among that. This is not seperate script. (This is function)
27,208
Posted By sharif
code snippet
Hi
function imple()
{
if [ ! -d $sourcedir ] ; then
echo " $sourcedir is not found from the release directory $RELPATH " | tee -a $REPLIMPLOG
exit // This exit is throwing...
Showing results 1 to 25 of 42

 

Featured Tech Videos

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