Search Results

Search: Posts Made By: Jayaraman
1,751
Posted By Jayaraman
How to get the exit status of a command in nner script to the outer script?
Hi all,

I have a shell script inside which i am executing another shell script. In the inner script im executing a command. i want the status of that command in the outer script to perform some...
14,144
Posted By Jayaraman
Use a shell variable in where clause
Hi all,

I want to use a variable inside my sql query and below is my script:


#!/bin/ksh
export b="abcd"
a=`sqlplus -s abc/def@ghi <<++
set heading off;
set feedback off;
select xxx...
27,205
Posted By Jayaraman
@gull04 what do you mean by $username in...
@gull04

what do you mean by $username in /var/spool/mail/$username?
Im asking this because i dont use it in my code.
27,205
Posted By Jayaraman
Checking whether the mail was sent or not
Hi all!!

Im using Ksh and working on Linux.

Im sending a mail to a mail_Id i have using the following code:

mutt -a file -s "some subject" $Mail_Id < Body.txt


I want to check...
5,366
Posted By Jayaraman
Comparing two timestamps
Hi all!!,

I'm using Ksh and working on Linux.

I want to compare two timestamps, timestamp1 and timestamp2.
Until, timestamp1 is lesser than timestamp2, i want to do something, lets say print...
17,746
Posted By Jayaraman
Run a script continuously for 10 minutes
Hi all!!

Im using ksh and my OS is Linux.

I want to run a script for ten minutes, starting from my current system time.

How to acheive this?

Any help appreciated.

Thanks in advance
1,849
Posted By Jayaraman
@elixir sinari Thanks a lot!!!
@elixir sinari
Thanks a lot!!!
1,849
Posted By Jayaraman
Retreiving part of a mail ID
Hi all,

I want to retrieve a part of the mail ID.
Im using Ksh.

The mail ID's i handle are of the type:
abc.def@ghi.com

I want the abc part alone.

Here is the code i used:
...
48,590
Posted By Jayaraman
@ygemici Im extremely sorry, i was in a...
@ygemici

Im extremely sorry, i was in a hurry that day, thats why i didnt read your question properly... the OS i use is

Red Hat Enterprise Linux Server release 5.8
48,590
Posted By Jayaraman
@ygemici im using Linux OS.. i mentioned...
@ygemici

im using Linux OS.. i mentioned the OS im using in comment #7
48,590
Posted By Jayaraman
@ygemici I executed those commands and the...
@ygemici

I executed those commands and the outputs are


/etc/init.d/iptables status
/etc/init.d/iptables: line 46: /etc/sysconfig/iptables-config: Permission denied

$ service iptables...
48,590
Posted By Jayaraman
@ygemici Im using Windows XP and GNU/Linux as...
@ygemici
Im using Windows XP and GNU/Linux as the unix counterpart.

I executed the linux command and seems like the local firewall is allowing ftp
the out put of the command is below:

$ ftp...
48,590
Posted By Jayaraman
@ygemici Thanks for the commands. i tried...
@ygemici

Thanks for the commands.
i tried them both and first one alone worked.
It is not getting connected actually

This is the reply i got


$ telnet IP address
Trying IP...
48,590
Posted By Jayaraman
@Corona688 This is the reply i get: ...
@Corona688

This is the reply i get:

ftp: connect: Connection refused
Not connected.
Not connected.
Local directory now /my destination directory
Not connected.
Not connected.
48,590
Posted By Jayaraman
FTP : refused to connect problem
Hi all,
I have just started learning shell scripting. Im using Ksh.

Here is the problem.
I want to ftp all csv files in a directory from windows to a directory in unix.
the script i wrote is...
Showing results 1 to 15 of 15

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