Search Results

Search: Posts Made By: palak08
6,416
Posted By palak08
Thanks for your reply. I have one more...
Thanks for your reply.

I have one more question:

I want to use return code in another program. Right now I am using Echo to get 1 or 0. How can I use return code so that I can capture 1 or 0.
...
6,416
Posted By palak08
Check if file exist
Hi,

I created following script to check if file exist:


#!/bin/bash
SrcDir=$1
SrcFileName=$2
SrcTimePeriod=$3
if [ -e $SrcDir/$SrcFileName_$SrcTimePeriod ];then
echo 1
else
echo 0
fi
...
3,862
Posted By palak08
How to download and extract files on Linux machine from internet
Hi,

I am working on Linux 64 bit machine. I am trying to install one software on Linux machine. I downloaded that software from internet on my windows machine. Now in order to install software on...
120,256
Posted By palak08
how to check SMTP server details on Unix
Hi All,

I am trying to figure out how to check SMTP server details on Unix enviornment?
I tried using
echo "hello" | sendmail -v abc@xyz.com

and got following error:

-bash: sendmail:...
2,471
Posted By palak08
Thanks! Actually I am new to Unix scripting and...
Thanks!
Actually I am new to Unix scripting and not very comfortable with Vi editors.
Now I did everything in unix and it is working.

Thanks Again.
2,471
Posted By palak08
Thanks for your reply. I did as mentioned by...
Thanks for your reply.
I did as mentioned by you.

Now my script looks like:

#!/bin/bash
rm -f File1

I renamed it to Trial12.sh
I also changed mode by using chmod +x Trial12.sh

And I...
2,471
Posted By palak08
How to execute a bash script
Hi All,

I am trying to write a simple bash script.

rm -f File1

I saved this as test.sh
Now when I want to execute it, I type ./test.sh
It gives me error "command not found"

What I am...
8,125
Posted By palak08
Check if file exist
Hi,

I am trying to create a bash script which will check if file exist then remove that file else do nothing. I have to do same process for three files in same script. I have written code for one...
4,166
Posted By palak08
changing directory quickly without cd ..
Hi,

I am in /home/development/project/abc directory. Now I want to remove one file which is kept in /trial/dev/<file> directory.
I would like to do it in one command.

I tried changing...
Showing results 1 to 9 of 9

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