Creat noip2 startup script

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
silveringking

Creat noip2 startup script

Post by silveringking »

So noip2 drives me crazy... So, I wanted something, a script to start it up...

Something like I write the name of the server, plus password and nick on the file, I click and I just start it up, I click again and it stops... It can be two scripts, one to start it and other to stop it... Is that possible? Thank you!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Pilosopong Tasyo
Level 6
Level 6
Posts: 1432
Joined: Mon Jun 22, 2009 3:26 am
Location: Philippines

Re: Creat noip2 startup script

Post by Pilosopong Tasyo »

I am not familiar with noip2, but like most commands, if noip2 allows you to pass those parameters from the CLI, or it references a configuration file for information, then certainly it is possible to automate the task you want done.
o Give a man a fish and he will eat for a day. Teach him how to fish and he will eat for a lifetime!
o If an issue has been fixed, please edit your first post and add the word [SOLVED].
User avatar
Oscar799
Level 20
Level 20
Posts: 10405
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Re: Creat noip2 startup script

Post by Oscar799 »

Moved here from Software & Applications
Image
Habitual

Re: Creat noip2 startup script

Post by Habitual »

Run in a terminal >

Code: Select all

noip2
and post the output (minus any passwords or other sensitive data)

Basically just need to see the output.

Thanks.

Seen this?
http://www.linuxquestions.org/questions ... up-320901/
silveringking

Re: Creat noip2 startup script

Post by silveringking »

carlos@carlos:~$ noip2
Can't locate configuration file /usr/local/etc/no-ip2.conf. (Try -c). Ending!

carlos@carlos:~$ sudo noip2
[sudo] password for carlos:
carlos@carlos:~$


No output with sudo...
User avatar
Pilosopong Tasyo
Level 6
Level 6
Posts: 1432
Joined: Mon Jun 22, 2009 3:26 am
Location: Philippines

Re: Creat noip2 startup script

Post by Pilosopong Tasyo »

More relevant output is needed. Post what

Code: Select all

noip2 --help
says on screen or use

Code: Select all

man noip2
We need to know what parameters/arguments it needs.
o Give a man a fish and he will eat for a day. Teach him how to fish and he will eat for a lifetime!
o If an issue has been fixed, please edit your first post and add the word [SOLVED].
silveringking

Re: Creat noip2 startup script

Post by silveringking »

Code: Select all

carlos@carlos:~$ noip2 --help
noip2: invalid option -- '-'

USAGE: noip2 [ -C [ -F][ -Y][ -U #min]
	[ -u username][ -p password][ -x progname]]
	[ -c file][ -d][ -D pid][ -i addr][ -S][ -M][ -h]

Version Linux-2.1.9
Options: -C               create configuration data
         -F               force NAT off
         -Y               select all hosts/groups
         -U minutes       set update interval
         -u username      use supplied username
         -p password      use supplied password
         -x executable    use supplied executable
         -c config_file   use alternate data path
         -d               increase debug verbosity
         -D processID     toggle debug flag for PID
         -i IPaddress     use supplied address
         -I interface     use supplied interface
         -S               show configuration data
         -M               permit multiple instances
         -K processID     terminate instance PID
         -z               activate shm dump code
         -h               help (this text)
carlos@carlos:~$ 
Here is what you asked for...

Noip comes without no manual... Geez somebody should create a deb for this thing because it is SO useful.
Habitual

Re: Creat noip2 startup script

Post by Habitual »

Output of

Code: Select all

sudo noip2 -C 
please
silveringking

Re: Creat noip2 startup script

Post by silveringking »

Code: Select all

carlos@carlos:~$ sudo noip2 -C
[sudo] password for carlos: 

Auto configuration for Linux client of no-ip.com.

Please enter the login/email string for no-ip.com  silveringking@hotmail.com
Please enter the password for user 'silveringking@hotmail.com'  ********

Only one host [zephirus.no-ip.org] is registered to this account.
It will be used.
Please enter an update interval:[30]  30
Do you wish to run something at successful update?[N] (y/N)  n

New configuration file '/usr/local/etc/no-ip2.conf' created.

carlos@carlos:~$ 
I didn't edit because there is no sensible info, just my email which is public...
silveringking

Re: Creat noip2 startup script

Post by silveringking »

Hello?
Locked

Return to “Scripts & Bash”