Search Results

Search: Posts Made By: Sabari Nath S
4,289
Posted By Sabari Nath S
My home shell is sh... But as radoulov told, I am...
My home shell is sh... But as radoulov told, I am using the setting inside a script (which has #!/usr/bin/ksh in the beginning) and executing the script in sh with DEV as the argument...
4,289
Posted By Sabari Nath S
Passing argument to a script while executing it within current shell
Hi Gurus,

I have written a script set_env.ksh to which I pass an argument and set the oracle login credentials based on the argument I pass.

The script has code as below.

ORACLE_SID=$1...
3,757
Posted By Sabari Nath S
Help needed to setup SFTP
Hi Gurus,

We need to make SFTP in non_interactive mode. I have done steps like key generation, copying public key into destination server, changing file/folder permission. Still we are not able...
10,135
Posted By Sabari Nath S
It already has. I have already placed the...
It already has. I have already placed the contents of id_rsa.pub to authorized_keys2 file under $HOME/.ssh dir in the host.
10,135
Posted By Sabari Nath S
Hi, I had already changed the permissions...
Hi,

I had already changed the permissions for all files under .ssh to 600 and the .ssh dir to 700

Client:


$ ls -ld .ssh
drwx------ 2 cdbcdi other 512 Mar 12 00:04 .ssh

$ cd...
10,135
Posted By Sabari Nath S
Non-Interactive SFTP
Hi,

I need to sftp from one Unix Server (source) to another (destination) (both SunOS) non-interactively.

I did the following :

1) Generated public key in source server in $HOME/.ssh dir...
10,805
Posted By Sabari Nath S
How to Unzip a file using unzip utility for files zipped without zip utility ?
Hi,

I need to zip/compress a data file and send to a vendor. The vendor does have only unzip utility and can accept only .ZIP files. I do not have zip utility in my server.

How do I...
1,574
Posted By Sabari Nath S
Depends on who is killing the process. If you are...
Depends on who is killing the process. If you are in control of the process that kills the script, try using someother signal (apart from 9) USR1 or USR2 and try trapping it.
21,046
Posted By Sabari Nath S
Hi, I was able to send mail from my AIX...
Hi,

I was able to send mail from my AIX server to Outlook with a vcs file as attachment. But the mail does not come as an invite, instead it comes as a mail with an attachment and only upon...
3,558
Posted By Sabari Nath S
cat filename | xargs -l1 echo | tr "/" "-" |...
cat filename | xargs -l1 echo | tr "/" "-" | xargs -l1 -i basename {} .project | tr "-" "/"
OR
cat filename | xargs -l1 dirname

would do what you expect
1,574
Posted By Sabari Nath S
You can trap the kill signal inside the script...
You can trap the kill signal inside the script and call a function in the script to send the mail and then make the script to exit. Find how trap works in the man pages and try this solution.
3,558
Posted By Sabari Nath S
A combination of xargs, tr and basename. I do not...
A combination of xargs, tr and basename. I do not want to give the whole command here since this question sounds like a homework question to me.
3,558
Posted By Sabari Nath S
You can read the file line-by-line using xargs,...
You can read the file line-by-line using xargs, replace the / by some other delimiter and then pass it to basename command for cutting the .project extension and then replace the delimiter in the...
21,046
Posted By Sabari Nath S
Using sendmail to send Outlook Meeting invitation
Hi,

I am using the following code to send mails to desired recipients about a batch job notification.

(
echo "From:" "Database Server"
echo "To:" ${MAILTO}
echo "Subject: ${SUBJECT}"
...
30,887
Posted By Sabari Nath S
Here my list of files to be renamed comes from...
Here my list of files to be renamed comes from some other command like find or something ... so i wud need to use xargs for doing this Also i want to do rename interactively ....

even when i put...
30,887
Posted By Sabari Nath S
Converting file names to upper case
Hi all,

I am trying to rename all my files in a directory to their upper case counterparts .... I want to do this in a single command and not through shell script ... I started off thinking it wud...
Forum: Solaris 01-05-2006
18,795
Posted By Sabari Nath S
Hi, I think this question came in a recent...
Hi,

I think this question came in a recent post .... You can try out some solutions given in that post :

https://www.unix.com/showthread.php?t=23992

Sabari Nath S
9,480
Posted By Sabari Nath S
Great .... that worked fine ... thanks a lot .......
Great .... that worked fine ... thanks a lot ....

i think nawk has the capability of taking regular expressions as field seperator which awk does not have .... am i right ?
9,480
Posted By Sabari Nath S
Hi ... I tried this out in one of my files...
Hi ...

I tried this out in one of my files having the data as below

20051202 07:02:03 07:38:23
20051203 07:01:35 07:33:44
20051204 07:01:39 07:37:41
20051205 07:01:47 07:39:39
20051206...
11,613
Posted By Sabari Nath S
There is some option for grep itself for this...
There is some option for grep itself for this same purpose like grep -An (for getting n lines above the searched pattern) and grep -Bn (for getting n lines below the searched pattern) ... not sure if...
28,546
Posted By Sabari Nath S
Wow !!! I was surprised to see such a small...
Wow !!! I was surprised to see such a small command doing this ... well cal u give an idea as to how it works ?? what do this 3 hyphens stand for ??
28,546
Posted By Sabari Nath S
Thanks all
Hi all ...

Thanks a lot for all replies ...

i got 4 solutions for to this ... and the sed one was simple .... I was new to n/N option in sed too .. thanks again to all ..
28,546
Posted By Sabari Nath S
Great Vino .. that worked fine ... One more doubt...
Great Vino .. that worked fine ... One more doubt .... can u tell me whats the meaning of N in this sed command and how does that work here ?
28,546
Posted By Sabari Nath S
Hi, This gives the result like this : ...
Hi,

This gives the result like this :

07:38:36 EST date 20041117
07:00:29 EDT date 20050504
07:00:40 EDT date 20050505

Not showing the last time ....

I got it done through another way...
28,546
Posted By Sabari Nath S
Joining 3 lines at a time
Hi,

I have a file which has the contents as below :

07:38:36 EST
date 20041117
07:39:06 EST
07:00:29 EDT
date 20050504
07:25:16 EDT
07:00:40 EDT
date 20050505
07:23:12 EDT

I need to...
Showing results 1 to 25 of 53

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