Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: bashily
979
Posted By bashily
Sendmail Rewrite Ruleset
Hi all,

I like to write a rule which do the following:

INPUT ADDRESS REWRITTEN TO
----------------------------- ...
2,343
Posted By bashily
Perl failure with "main::$fn" used only once:" in error logs
Hi all,

Can anyone guess why this is happening? I am new to Perl, so please help me to fix this error:
- I have a static html file which calls the cgi-perl script.
HTML Code:

<html>
<head>
...
751
Posted By bashily
Elaminate BACKTRACKS in PERL
I have the following code and I am trying to use mail command to send email to myself. settings on my server is setup, so I don't need define the "FROM" address.
The main problem is if I use "-T"...
5,351
Posted By bashily
#df /neth Filesystem 1K-blocks ...
#df /neth
Filesystem 1K-blocks Used Available Use% Mounted on
- 0 0 0 - /neth

# showmount -e vm2.domain.com | grep "/nethome"...
1,511
Posted By bashily
Automount permission issue
Hi all,
I am running CentOS6.3 and NFS is giving me a real hard time here:
on my server a folder called /networkh has created with 777 permissions. I have setup NFS server on this server and it is...
5,351
Posted By bashily
it doesn't work! I figured my mistake in the...
it doesn't work!
I figured my mistake in the auto.master and auto.neth...
however, I can not see the folder as a mounted folder and when I check the listing, I can see it.
I am also, not able to...
5,351
Posted By bashily
Nope, still doesn't work! is there any log for...
Nope, still doesn't work!
is there any log for this damn thing?
I checked /var/log/messages and nothing useful is there!

---------- Post updated at 08:29 PM ---------- Previous update was at...
5,351
Posted By bashily
NFS issue with autofs in CentOS 6.3
I am running CentOS 6.3 as a VM on a host which has the same installation. I configured my NFS server and I am guessing it works. I say guessing because I can mount the desired folder with mount...
1,106
Posted By bashily
But this way all goes to the file and there won't...
But this way all goes to the file and there won't be anything on the screen. I want to have my regular report shows up on my terminal and export a copy of that to a file as well when user uses -f...
1,106
Posted By bashily
bash: How to send the output to a file upon users' request?
Let's say I have a script which creates a report. I use getopts to have different options available to the user. One of these options is -f which basically exports the output of script to a text file...
2,184
Posted By bashily
THANK YOU SOOOOO MUCH!!!! You are the best. I...
THANK YOU SOOOOO MUCH!!!! You are the best. I have nothing to say. WELL DONE!!:b:;):eek:
2,184
Posted By bashily
Thanks
Thanks
2,184
Posted By bashily
I am going to cry my eyes out! this damn script...
I am going to cry my eyes out! this damn script doesn't work and I can't see my mistakes! I think everything is OK but if user choose two options, the output won't be correct!:wall:
2,184
Posted By bashily
So, you mean something like this: if [ $user...
So, you mean something like this:

if [ $user ]; then
printf "\nTOP ANALYSIS REPORT\n"
printf "\nName: %4s\n" $user

if [ $mycommand ]; then
echo...
2,184
Posted By bashily
Thanks for taking your time on this. When I...
Thanks for taking your time on this.
When I run:
this is what I get as the output is:
But it shouldn't give the priority column without -p command in the terminal. do you know why I get this??
2,184
Posted By bashily
My if statement doesn't work why?
I have the following and for some reason I can't have two options together.
I mean if I choose -u and -p it won't work... why?

#!/bin/bash

resetTime=1
mytotalTime=0
totalHour=0
totalMin=0...
716
Posted By bashily
How to let the user to choose two options at the same time in terminal?
I am lost in my script and I need someone to help me with it.
how can I have two or more options chosen by user at the same time. eg.
right now this is the output:
1,652
Posted By bashily
Thanks so much. it was the greatest help ever! I...
Thanks so much. it was the greatest help ever! I got what I wanted. The source that you introduced was a fantastic bash scripting source.
Cheers
1,652
Posted By bashily
Bash Positional Parameters Question
In a Bash script I used getopts command to let a user does something regards to the selected options. The question is: How do you find out what is the name of the file that user inserted in the...
1,454
Posted By bashily
That code is an example that I fount on the web....
That code is an example that I fount on the web. I'll do my best to figure out what I want with your assistance.
1,454
Posted By bashily
I should say thanks to you "Scrutinizer...
I should say thanks to you "Scrutinizer (https://www.unix.com/members/302052697.html)" I got some of the code correctly; however, the loop that you were suggesting, wouldn't work with my code. The...
1,454
Posted By bashily
How to use Bash and awk to search in a file?
I have the following code as a file which a user can choose with an option to search in that file. The file name is not specified and can have any name and extension. Now a sample of this file is...
8,619
Posted By bashily
I couldn't figure it out! would you take a look...
I couldn't figure it out! would you take a look at this:
usage()
{
cat << EOF

USAGE: $0 [options] file

EOF
}

usageOption()
{
cat << EOF

$0 Must select report type: -u(ser) or...
8,619
Posted By bashily
what if I mix it with getopts command and check...
what if I mix it with getopts command and check for input options. first parameter ($1) would be always a wrong file because it is (eg. -u) one of the switches!
8,619
Posted By bashily
IF statement file exist or not?
How can I check and see if the first parameter is a file existing in the current path or it is a real file and user input some random name in an IF statement?
Showing results 1 to 25 of 48

 

Featured Tech Videos

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