On 05/18/2010 14:52, Yavuz Maþlak wrote:
I use freebsd7.2
I wish to send a file using crontab as periodic. I have a script to send
the file.
When I am root, I can execute my script, but I can't execute the script
using crontab.
How can I run it ?
cat myscript
/usr/bin/scp -i /root/.ssh/id_rsa.p
Either make the script executable or cron it like this:
* * * * * /bin/sh /path/to/myscript
--
Paul Schmehl, Senior Infosec Analyst
On 5/18/10 3:40 PM, Yavuz Maşlak wrote:
the script is already executable but it doesn't work -rwxrwxrwx 1
root wheel ..
This list frowns on
--On Tuesday, May 18, 2010 21:52:43 +0300 Yavuz Maşlak
wrote:
I use freebsd7.2
I wish to send a file using crontab as periodic. I have a script to send the
file.
When I am root, I can execute my script, but I can't execute the script using
crontab.
How can I run it ?
cat myscript
/usr/bin/sc
The script must start with
#!/bin/sh
and be executable
On Tue, 18 May 2010 21:52:43 +0300
Yavuz Maşlak wrote:
> I use freebsd7.2
>
> I wish to send a file using crontab as periodic. I have a script to
> send the file.
> When I am root, I can execute my script, but I can't execute the
> script
the script is already executable but it doesn't work
-rwxrwxrwx 1 root wheel ..
Either make the script executable or cron it like this:
* * * * * /bin/sh /path/to/myscript
--
Paul Schmehl, Senior Infosec Analyst
As if it wasn't already obvious, my opinions
are my own and not t
I use freebsd7.2
I wish to send a file using crontab as periodic. I have a script to send the
file.
When I am root, I can execute my script, but I can't execute the script
using crontab.
How can I run it ?
cat myscript
/usr/bin/scp -i /root/.ssh/id_rsa.pub /root/cpfile
r...@192.168.10.9:/var