Arch Linux
Moderators: b1o, jkerr82508
Forum rules
Try to avoid "fanboyism" Spam is strictly forbidden. The general rules apply: viewtopic.php?f=8&t=568
Try to avoid "fanboyism" Spam is strictly forbidden. The general rules apply: viewtopic.php?f=8&t=568
Re: Arch Linux
Eh now I am confused. That cannot be the output of the command crontab -l !?
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"
"There are no stupid questions - Only stupid answers!"
- dedanna1029
- Sound-Berserk
- Posts: 8784
- Joined: 14 Mar 2010, 20:29
- Contact:
Re: Arch Linux
You saw it for yourself - I copied/pasted the command itself directly from you.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html
Re: Arch Linux
copy and paste crontab -l into your terminal as your normal user - not as root. And lemme see!
What you posted above was the content of a file I would like to see your output inclusive the prompt where you tip the command.
What you posted above was the content of a file I would like to see your output inclusive the prompt where you tip the command.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"
"There are no stupid questions - Only stupid answers!"
- dedanna1029
- Sound-Berserk
- Posts: 8784
- Joined: 14 Mar 2010, 20:29
- Contact:
Re: Arch Linux
Code: Select all
.:[ dedanna@dedanna.rocks.net : 08:56:37 : ~ ]:.
:) crontab -l
bash: /usr/bin/crontab: Permission deniedIt doesn't let you run that as regular user.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html
Re: Arch Linux
It should:
Do you have sudo working now?
Anyway do it again as root....
Code: Select all
.:[ thomas@viking60-server : 17:05:40 : ~ ]:.
:) crontab -l
no crontab for thomasDo you have sudo working now?
Anyway do it again as root....
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"
"There are no stupid questions - Only stupid answers!"
- dedanna1029
- Sound-Berserk
- Posts: 8784
- Joined: 14 Mar 2010, 20:29
- Contact:
Re: Arch Linux
Yes, sudo's working, but I don't like to use it. Okay, off for root again.
Eh, it appears as well that the bash error has returned. Still can't figure which line it is I need to fix.
Code: Select all
[root@dedanna dedanna]# crontab -l
# root crontab
# DO NOT EDIT THIS FILE MANUALLY! USE crontab -e INSTEAD
# man 1 crontab for acceptable formats:
# <minute> <hour> <day> <month> <dow> <tags and command>
# <@freq> <tags and command>
# SYSTEM DAILY/WEEKLY/... FOLDERS
@hourly ID=sys-hourly /usr/sbin/run-cron /etc/cron.hourly
@daily ID=sys-daily /usr/sbin/run-cron /etc/cron.daily
@weekly ID=sys-weekly /usr/sbin/run-cron /etc/cron.weekly
@monthly ID=sys-monthly /usr/sbin/run-cron /etc/cron.monthly
bash: bash_prompt_cmd: command not found
[root@dedanna dedanna]# Eh, it appears as well that the bash error has returned. Still can't figure which line it is I need to fix.
Code: Select all
[dedanna@dedanna ~]$ cat .bashrc
# Check for an interactive session
#[ -z "$PS1" ] && return
#alias ls='ls --color=auto'
#PS1='[\u@\h \W]\$ '
bash_prompt_cmd() {
RTN=$?
smiley() {
if [ $1 == 0 ] ; then
echo ":)"
else
echo ":("
fi
}
smileyc() {
if [ $1 == 0 ] ; then
echo $GREEN
else
echo $RED
fi
}
if [ $(tput colors) -gt 0 ] ; then
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
RST=$(tput op)
fi
smiley=$(smiley $RTN)
smileyc=$(smileyc $RTN)
local CY="\[\e[1;31m\]" # Each is 12 chars long
local BL="\[\e[1;34m\]"
local WH="\[\e[1;37m\]"
local BR="\[\e[0;33m\]"
local RE="\[\e[1;31m\]"
local PROMPT="${CY}$"
[ $UID -eq "0" ] && PROMPT="${RE}#"
# Add the first part of the prompt: username,host, and time
local PROMPT_PWD=""
local PS1_T1="$BL.:[ $CY`whoami`@`hostname` $BL: $CY\t $BL:$CY "
local ps_len=$(( ${#PS1_T1} - 12 * 6 + 6 + 4 )) #Len adjust for colors, time and var
local PS1_T2=" $BL]:.\n\[\$smileyc\]\$smiley\[$RST\] "
local startpos=""
PROMPT_PWD="${PWD/#$HOME/~}"
local overflow_prefix="..."
local pwdlen=${#PROMPT_PWD}
local maxpwdlen=$(( COLUMNS - ps_len ))
# Sometimes COLUMNS isn't initiliased, if it isn't, fall back on 80
[ $maxpwdlen -lt 0 ] && maxpwdlen=$(( 80 - ps_len ))
if [ $pwdlen -gt $maxpwdlen ] ; then
startpos=$(( $pwdlen - maxpwdlen + ${#overflow_prefix} ))
PROMPT_PWD="${overflow_prefix}${PROMPT_PWD:$startpos:$maxpwdlen}"
fi
export PS1="${PS1_T1}${PROMPT_PWD}${PS1_T2}"
smiley=$(smiley $RTN)
smileyc=$(smileyc $RTN)
local CY="\[\e[1;31m\]" # Each is 12 chars long
local BL="\[\e[1;34m\]"
local WH="\[\e[1;37m\]"
local BR="\[\e[0;33m\]"
local RE="\[\e[1;31m\]"
local PROMPT="${CY}$"
[ $UID -eq "0" ] && PROMPT="${RE}#"
# Add the first part of the prompt: username,host, and time
local PROMPT_PWD=""
local PS1_T1="$BL.:[ $CY`whoami`@`hostname` $BL: $CY\t $BL:$CY "
local ps_len=$(( ${#PS1_T1} - 12 * 6 + 6 + 4 ))
#Len adjust for colors, time and var
local PS1_T2=" $BL]:.\n\[\$smileyc\]\$smiley\[$RST\] "
local startpos=""
PROMPT_PWD="${PWD/#$HOME/~}"
local overflow_prefix="..."
local pwdlen=${#PROMPT_PWD}
local maxpwdlen=$(( COLUMNS - ps_len ))
# Sometimes COLUMNS isn't initiliased, if it isn't, fall back on 80
[ $maxpwdlen -lt 0 ] && maxpwdlen=$(( 80 - ps_len ))
if [ $pwdlen -gt $maxpwdlen ] ; then
startpos=$(( $pwdlen - maxpwdlen + ${#overflow_prefix} ))
PROMPT_PWD="${overflow_prefix}${PROMPT_PWD:$startpos:$maxpwdlen}"
fi
export PS1="${PS1_T1}${PROMPT_PWD}${PS1_T2}"
}I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html
- dedanna1029
- Sound-Berserk
- Posts: 8784
- Joined: 14 Mar 2010, 20:29
- Contact:
Re: Arch Linux
Okay, /root didn't have a .bashrc, so I gave it a plain vanilla one, and *I think* the error has disappeared for it now. Yep, it has.
Just wish I knew what hosed it to begin with.
Code: Select all
.:[ dedanna@dedanna.rocks.net : 10:06:41 : ~ ]:.
:) crontab -l
bash: /usr/bin/crontab: Permission denied
.:[ dedanna@dedanna.rocks.net : 10:06:46 : ~ ]:.
:( su
Password:
[root@dedanna dedanna]# crontab -l
# root crontab
# DO NOT EDIT THIS FILE MANUALLY! USE crontab -e INSTEAD
# man 1 crontab for acceptable formats:
# <minute> <hour> <day> <month> <dow> <tags and command>
# <@freq> <tags and command>
# SYSTEM DAILY/WEEKLY/... FOLDERS
@hourly ID=sys-hourly /usr/sbin/run-cron /etc/cron.hourly
@daily ID=sys-daily /usr/sbin/run-cron /etc/cron.daily
@weekly ID=sys-weekly /usr/sbin/run-cron /etc/cron.weekly
@monthly ID=sys-monthly /usr/sbin/run-cron /etc/cron.monthly
[root@dedanna dedanna]#Just wish I knew what hosed it to begin with.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html
Re: Arch Linux
You are mixing up two things here. Lets do the cron thing first.
That looks like you have manually edited by pasting something totally wrong in there. Is that the script maybe that you wanted the crontab to run?
I am not aware that crontab can handle that at all. That is no cron job as far as I can tell.
I think you should delete the whole enchilada.
just do a :
And remove it all and save it. Then we can build a normal crontab with whatever you wanted to do.
That looks like you have manually edited by pasting something totally wrong in there. Is that the script maybe that you wanted the crontab to run?
I am not aware that crontab can handle that at all. That is no cron job as far as I can tell.
I think you should delete the whole enchilada.
just do a :
Code: Select all
sudo EDITOR=nano crontab -eAnd remove it all and save it. Then we can build a normal crontab with whatever you wanted to do.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"
"There are no stupid questions - Only stupid answers!"
- dedanna1029
- Sound-Berserk
- Posts: 8784
- Joined: 14 Mar 2010, 20:29
- Contact:
Re: Arch Linux
I have not messed with crontab at all. I have no clue even how. That's the output it gave, that's all I know. All I want is for daily cron to run at 4:00 a.m. rather than 7:30 p.m.
This is what happens when I type in the command you gave:
That's what I've got. Delete all that?
Edit: Here's what's in each one of the folders the file currently points to:
I'm starting to think on second thought, that maybe I don't want to mess with this. Without knowing what crontab is currently doing for sure, I could mess it up more.
Thanks.
This is what happens when I type in the command you gave:
Code: Select all
# root crontab
# DO NOT EDIT THIS FILE MANUALLY! USE crontab -e INSTEAD
# man 1 crontab for acceptable formats:
# <minute> <hour> <day> <month> <dow> <tags and command>
# <@freq> <tags and command>
# SYSTEM DAILY/WEEKLY/... FOLDERS
@hourly ID=sys-hourly /usr/sbin/run-cron /etc/cron.hourly
@daily ID=sys-daily /usr/sbin/run-cron /etc/cron.daily
@weekly ID=sys-weekly /usr/sbin/run-cron /etc/cron.weekly
@monthly ID=sys-monthly /usr/sbin/run-cron /etc/cron.monthlyThat's what I've got. Delete all that?
Edit: Here's what's in each one of the folders the file currently points to:
Code: Select all
:) ls /etc/cron.hourly
adjtime
.:[ dedanna@dedanna.rocks.net : 10:20:43 : ~ ]:.
:) ls /etc/cron.daily
bashfr logrotate man-db pkgfile shadow updatedb
.:[ dedanna@dedanna.rocks.net : 10:20:56 : ~ ]:.
:) ls /etc/cron.weekly
.:[ dedanna@dedanna.rocks.net : 10:21:04 : ~ ]:.
:) ls /etc/cron.monthlyI'm starting to think on second thought, that maybe I don't want to mess with this. Without knowing what crontab is currently doing for sure, I could mess it up more.
Thanks.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html
Re: Arch Linux
Ok I sure did not know you could do that with cron - so you might be right.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"
"There are no stupid questions - Only stupid answers!"
- dedanna1029
- Sound-Berserk
- Posts: 8784
- Joined: 14 Mar 2010, 20:29
- Contact:
Re: Arch Linux
Yeah, there would be a LOT to it.
http://www.opengroup.org/onlinepubs/009 ... ontab.html
http://www.opengroup.org/onlinepubs/009 ... es/at.html
I can be good, but I'm nowhere near that good.
http://www.opengroup.org/onlinepubs/009 ... ontab.html
http://www.opengroup.org/onlinepubs/009 ... es/at.html
I can be good, but I'm nowhere near that good.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html
Re: Arch Linux
Well that description seems to agree with me: You can call a file but you can not put it in crontab directly.
Edit but I see now that the @daily etc are valid entries.
http://crunchbang.org/archives/2007/10/ ... ntab-file/
Edit but I see now that the @daily etc are valid entries.
http://crunchbang.org/archives/2007/10/ ... ntab-file/
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"
"There are no stupid questions - Only stupid answers!"