LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-26-2008, 02:04 AM   #1
ritam_bkp
Member
 
Registered: Sep 2008
Location: Calcutta,India
Distribution: Fedora 11, OpenSUSE 11.0
Posts: 116

Rep: Reputation: 17
Automation Problems


hello everyone...
i am having a weird problem in my ubuntu PC..

My ISP gives unlimited usage facility from 2am to 8am
Clearly ..it is not posible for me to wake up everyday in midnight...and resume my torrent downloads..
i use pon dsl-provider and poff commands to cnnct and discnnct from the internet, respectivily..
what i am asking for is stated pointwise below --

1)automatically connect to the internet(pon dsl-provider) at 2.00 am

2)automatically disconnect from the internet(poff) at 8.00 am

3)automate a proper shutdown process at 8.01am(here,i actually use shutdown -h 08:01, but i have to wake up sometime in the night and provide this command manually....and this command is faulty too...Sometimes when i start my machine afterwards fsck checks drive integrity at boot time and then my torrent client (deluge) shows 0% downloaded after a full night of download at 150kbps !!!! )

i guess there are other commands such as poweroff that help shutown computers properly???

--looking for ur support regarding this matter
thanx
 
Old 09-26-2008, 02:14 AM   #2
Dj.r4iDeN
LQ Newbie
 
Registered: Jul 2008
Location: NY
Distribution: slackware 12.1
Posts: 19

Rep: Reputation: 1
ok

you need to use corn command (search it )

and use
ifconfig eth0 up
and
ifconfig eth0 down

its idea #1

2nd idea to use command killall
and kill the torrent program with corn

3rd idea

to block all traffic at 8 clock
using iptables



iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP

what do you think ?
 
Old 09-26-2008, 02:17 AM   #3
Dj.r4iDeN
LQ Newbie
 
Registered: Jul 2008
Location: NY
Distribution: slackware 12.1
Posts: 19

Rep: Reputation: 1
ok

you can use iptable to block traffic @ 8clock or @ any time you want

iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP

search in google how to use corn and AT
 
Old 09-26-2008, 02:29 AM   #4
ritam_bkp
Member
 
Registered: Sep 2008
Location: Calcutta,India
Distribution: Fedora 11, OpenSUSE 11.0
Posts: 116

Original Poster
Rep: Reputation: 17
yah...
the ideas were superb..
specially the 1st and 3rd ones..

but u have not answered about my point 3 (proper shutdowning so that fsck does not run at boot time....and remove away my temporary torrent files)
 
Old 09-26-2008, 02:33 AM   #5
Dj.r4iDeN
LQ Newbie
 
Registered: Jul 2008
Location: NY
Distribution: slackware 12.1
Posts: 19

Rep: Reputation: 1
Quote:
Originally Posted by ritam_bkp View Post
yah...
the ideas were superb..
specially the 1st and 3rd ones..

but u have not answered about my point 3 (proper shutdowning so that fsck does not run at boot time....and remove away my temporary torrent files)

Quote:
# device name mount point fs-type options dump-freq pass-num
LABEL=/ / ext3 defaults 1 1
/dev/hda6 swap swap defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0

# Removable media
/dev/cdrom /mount/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mount/floppy auto noauto,owner,kudzu 0 0

# NTFS Windows XP partition
/dev/hda1 /mnt/WinXP ntfs-3g quiet,defaults,locale=en_US.utf8,umask=0 0 0

# Partition shared by Windows and Linux
/dev/hda7 /mnt/shared vfat umask=000 0 0
ok

if you dont want to run fsck

change your fstab and remove the 1 and put 0

is it work with you ?

because i dont think its good idea to stop file system checking
 
Old 09-26-2008, 02:33 AM   #6
ritam_bkp
Member
 
Registered: Sep 2008
Location: Calcutta,India
Distribution: Fedora 11, OpenSUSE 11.0
Posts: 116

Original Poster
Rep: Reputation: 17
i am aslo having problems saving my crontab file..
when i run the crontab -e command , the crontab files open withinin the terminals...
now in the terminals i cannot find the "Save" option....and hence, although i can edit my cronatb file....finally i cannot save it
what to do now??

see the screenshots here

http://picasaweb.google.com/ritam378...10467156697906

http://picasaweb.google.com/ritam378...10569253260658
 
Old 09-26-2008, 02:34 AM   #7
Dj.r4iDeN
LQ Newbie
 
Registered: Jul 2008
Location: NY
Distribution: slackware 12.1
Posts: 19

Rep: Reputation: 1
Quote:
Originally Posted by ritam_bkp View Post
i am aslo having problems saving my crontab file..
when i run the crontab -e command , the crontab files open withinin the terminals...
now in the terminals i cannot find the "Save" option....and hence, although i can edit my cronatb file....finally i cannot save it
what to do now??

see the screenshots here

http://picasaweb.google.com/ritam378...10467156697906

http://picasaweb.google.com/ritam378...10569253260658

you are not root !

where is sudo ?

you can use

sudo passwd

to change the root password after that run

su
 
Old 09-26-2008, 02:39 AM   #8
ritam_bkp
Member
 
Registered: Sep 2008
Location: Calcutta,India
Distribution: Fedora 11, OpenSUSE 11.0
Posts: 116

Original Poster
Rep: Reputation: 17
thanx for ur concern
but if i become root...
the same problem persists...

nothing changes
 
Old 09-26-2008, 02:42 AM   #9
Dj.r4iDeN
LQ Newbie
 
Registered: Jul 2008
Location: NY
Distribution: slackware 12.1
Posts: 19

Rep: Reputation: 1
Quote:
Originally Posted by ritam_bkp View Post
thanx for ur concern
but if i become root...
the same problem persists...

nothing changes
ctrl + o
to write it

after that

ctrl + x to exit

dont be shy to ask

ask any thing you want

Last edited by Dj.r4iDeN; 09-26-2008 at 02:54 AM.
 
Old 09-26-2008, 06:35 AM   #10
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Quote:
Originally Posted by Dj.r4iDeN View Post
ok

you can use iptable to block traffic @ 8clock or @ any time you want

iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP

search in google how to use corn and AT
Did you mean "cron" not "corn".
 
Old 09-26-2008, 10:01 AM   #11
ritam_bkp
Member
 
Registered: Sep 2008
Location: Calcutta,India
Distribution: Fedora 11, OpenSUSE 11.0
Posts: 116

Original Poster
Rep: Reputation: 17
this is my fstab file...
should i also disable fsck on my root(/) and /boot partitions ??


# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda10
UUID=f84adb33-b025-4b64-895f-acdaa9a774cf / ext3 defaults,errors=remount-ro 0 1
# /dev/sda9
UUID=9d5b456c-d803-4340-ae24-0d7afdb07073 /boot ext3 defaults 0 2
# /dev/sda1
UUID=BE18075418070ADB /media/sda1 ntfs defaults,umask=007,gid=46 0 0
# /dev/sda5
UUID=BAF4C019F4BFD5BB /media/sda5 ntfs defaults,umask=007,gid=46 0 0
# /dev/sda6
UUID=4C0C60D60C60BD18 /media/sda6 ntfs defaults,umask=007,gid=46 0 0
# /dev/sda7
UUID=82D43030D4302935 /media/sda7 ntfs defaults,umask=007,gid=46 0 0
# /dev/sda8
UUID=04E85143E8513460 /media/sda8 ntfs defaults,umask=007,gid=46 0 0
# /dev/sda11
UUID=8c66a619-d9aa-4d03-9bb8-2821dd7a59f8 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Robot for automation threepwood Linux - Software 1 12-22-2006 10:34 AM
automation bong.mau Programming 2 09-06-2005 04:26 PM
Office Automation pudhiyavan Linux - Software 0 01-07-2005 02:24 AM
ndiswrapper - automation problems He He Man Linux - Wireless Networking 3 10-28-2004 06:59 AM
ftp automation Mad_C Linux - General 12 09-15-2003 09:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration