On Wed, Nov 05, 2008 at 05:56:57AM -0800, GQ wrote:
>
> Hi there.
>
> I'm running some scripts from cron.
>
> There I need to get current VIMRUNTIME (to not hardcode it every time
> vim updates).
>
> The following string works well:
> $vim -e --cmd ':echo $$VIMRUNTIME|q'
> and I got VIMRUNTIME from it's stderr
>
> But if I run it from cronjob, I got nothing.
>
> Any ideas? How to run vim without terminal, or how to get VIMRUNTIME
> other way?
Maybe redirecting stderr to stdout helps, like this:
vim -e --cmd ':echo $$VIMRUNTIME|q' 2>&1
-Erik
--
v4sw5RUYhw2ln3pr5ck0ma2u7Lw3+2Xm0l6/7Gi2e2t3b6AKMen5+7a16s0Sr1p-5.62/-6.56g6OR
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---