Search Results

Search: Posts Made By: mohitmoudgil
2,524
Posted By mohitmoudgil
Hi, I could execute the script on webpage by...
Hi,

I could execute the script on webpage by hardcoding the domain name

http://mohitmoudgil.com/cgi-bin/test2.sh

but how can I take the value on the web page itself.
2,524
Posted By mohitmoudgil
Hi, Thank you very much!! You got it...
Hi,

Thank you very much!! You got it working.

#!/bin/bash

result1="NULL"
result2="NULL"
result3="NULL"
result4="NULL"
result5="NULL"
result6="NULL"
result7="NULL"

revresult1="NULL"...
2,524
Posted By mohitmoudgil
Script error with when input is empty
Hi,

I created the following shell script to lookup multiple name servers for a domain.


#!/bin/bash

echo -n "Enter the domain name and press [ENTER]: "
read domain


result1=`dig +short...
2,436
Posted By mohitmoudgil
Thank you so much. There were two echo statements...
Thank you so much. There were two echo statements ...my bad
2,436
Posted By mohitmoudgil
Hi, Thanks!! Looks its fine now.. But why it...
Hi,

Thanks!! Looks its fine now.. But why it is still showing multiple values

6776 6776
usage is 6776
less that 50000 k
Old package is nolimit
280 280
usage is 280
less that 50000 k...
2,436
Posted By mohitmoudgil
Hi, Replaced. Now the output is ...
Hi,

Replaced.

Now the output is

Old package is nolimit
6776 6776
usage is 6776
account.sh: line 26: [: 6776
6776: integer expression expected
account.sh: line 33: [: 6776
6776:...
2,436
Posted By mohitmoudgil
Problem with script
Hi,

I am making a shell script but getting the errors.

Script is

#!/bin/bash

ls /var/cpanel/users > /home/users.txt

for i in `cat /home/users.txt`
do


grep -H PLAN...
6,096
Posted By mohitmoudgil
Hi, Thanks. I was missing quote.
Hi,

Thanks. I was missing quote.
6,096
Posted By mohitmoudgil
Remote server file output redirection
Hi,

I want ssh to the remote server and then execute ls and redirect the output to the file in remote server itself

like

ssh root@$server `ls /var/log/users.txt >...
1,609
Posted By mohitmoudgil
Hi, Problem was with the firewall. It was...
Hi,

Problem was with the firewall. It was stopping repeated connections to the server. My bad :(
1,609
Posted By mohitmoudgil
Hi, Ok I added one echo statment after rsync...
Hi,

Ok I added one echo statment after rsync

echo "rsync complete for user $i"


And got the result

rsync complete for user a2801cen

BUt it hangs after this. One strange thing. As...
1,609
Posted By mohitmoudgil
Problem with backup script
Hi,

Following is the script I made for backing up Cpanel server.

================================================


#! /bin/bash


rsync -raopguzl --delete --exclude "*.tar.gz"...
Showing results 1 to 12 of 12

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