Search Results

Search: Posts Made By: rahulbahulekar
1,788
Posted By rahulbahulekar
Thankx for the solution. your code is...
Thankx for the solution.

your code is working fine. Also i tried with ls -ltrh *.Z | mailx...... and able to produce desired result.

Thankx!!
Rahul.
1,788
Posted By rahulbahulekar
issue with Email Body
Hi,

I have written shell program to send email as below -

#!/bin/ksh
filename=`ls -ltrh *.Z`
echo $filename |mailx -s "FOR TESTING" rahul.b@infotech.net

I am getting the email but email...
975
Posted By rahulbahulekar
got it - Thank you so much!!
got it -

Thank you so much!!
975
Posted By rahulbahulekar
Thankx!! Code is working fine!! could...
Thankx!!

Code is working fine!!

could you plz help me to understand what 2> /dev/null does

Thankx,
Rahul.
975
Posted By rahulbahulekar
File Name needs to display
I am new to shell scripting plz help me to get solution for below requirement -

If name.sh file is present, message will be displayed as “name.sh is present” else "name.sh is not present"

I...
10,558
Posted By rahulbahulekar
thank you so much..!! :b:
thank you so much..!! :b:
10,558
Posted By rahulbahulekar
when used - [ -s $f ] && echo...
when used -


[ -s $f ] && echo "filename exists and is > 0 bytes" || echo "filename does not exist or is zero length"

got -

Missing ]
filename does not exist or is zero length
10,558
Posted By rahulbahulekar
thankx for reply. but i am getting "filename...
thankx for reply.

but i am getting "filename does not exist or is zero length" even though file is present

Code:
#!/bin/csh
#######################
setenv UPDLOG /data/updlog
setenv f1...
10,558
Posted By rahulbahulekar
if condition for filesize
Hi,

I want to check file size in unix, based on file size I am going to execute appropriate command.

I tried below, but getting the error.

System details –

Machine hardware: sun4u
OS...
11,171
Posted By rahulbahulekar
got it!! thankx!!
got it!! thankx!!
11,171
Posted By rahulbahulekar
Thankx for the reply but i am looking for result...
Thankx for the reply but i am looking for result in YYYYMMDD format
11,171
Posted By rahulbahulekar
assign yesterday's date to variable
Hi,

i am trying to assign yesterday's date to a variable on below system -

Machine hardware: sun4u
OS version: 5.9
Processor type: sparc

usr> setenv dt `date +"%Y%m%d"`
usr>...
4,494
Posted By rahulbahulekar
Thank you for help!!!
Thank you for help!!!
4,494
Posted By rahulbahulekar
Auto download - filename UCC-YYYYMMDD.zip format.
Hi,

On a daily basis I have download .zip file from FTP site. Naming convention of .zip is UCC-20100816.zip

I want to create windows batch file which will automatically download...
Forum: Solaris 03-05-2010
9,501
Posted By rahulbahulekar
Thank you!!
Thank you!!
Forum: Solaris 03-05-2010
9,501
Posted By rahulbahulekar
using ls -ltr : display only last four file names
Hi ,

Server details –

Machine hardware: sun4u
OS version: 5.9
Processor type: sparc
Hardware: SUNW,Sun-Fire-880

When I put ls –ltr command I get –
...
6,377
Posted By rahulbahulekar
Auto login to Unix
Hi,

i am trying to connect to unix server from windows bat file using telnet command. But bat file is unable to pass username and password hence could not login to UNIX.

My requirement is to...
10,846
Posted By rahulbahulekar
perl yesterday's date in mmddyyyy format
Hi,

Below command is producing yesaterday's date in mmddyy format -

perl -e '@T=localtime(time-86400);printf("%02d%02d%02d",$T...
5,201
Posted By rahulbahulekar
Rename FILE with sysdate-1
Hi,

There is file on UNIX server named as fd40568-07082009.txt which get FTP'ed to UNIX on a daily basis. 07082009 of fd40568-07082009.txt represents the system date. This type of .txt gets FTP...
14,378
Posted By rahulbahulekar
bat file to connect UNIX server.
Hi,

i am trying to connect to unix server from windows bat file using telnet command. But bat file is unable to pass username and password hence could not login to UNIX.

My requirement is to...
Showing results 1 to 20 of 20

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