Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #236056

Re: Is invoking the -locker option of xautolock to run a script known? Could I be helped with an xautolock code line please?

From Greg Wooledge <greg@wooledge.org>
Newsgroups linux.debian.user
Subject Re: Is invoking the -locker option of xautolock to run a script known? Could I be helped with an xautolock code line please?
Date 2021-06-13 15:20 +0200
Message-ID <CpybU-4mz-19@gated-at.bofh.it> (permalink)
References <CpwWu-3tg-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun, Jun 13, 2021 at 05:05:55PM +0530, Susmita/Rajib wrote:
> #!/bin/bash
> expr $(( i = i + 1 ))

Try one of these alternatives:

i=$((i + 1))      # This one also works in sh.
((i = i + 1))     # These two are bashisms.
((i++))

> echo "Ending..."
> echo i

Pretty sure you intended this to be echo "$i".

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Is invoking the -locker option of xautolock to run a script known?  Could I be helped with an xautolock code line please? "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2021-06-13 14:00 +0200
  Re: Is invoking the -locker option of xautolock to run a script  known? Could I be helped with an xautolock code line please? "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2021-06-13 15:00 +0200
    Re: Is invoking the -locker option of xautolock to run a script  known? Could I be helped with an xautolock code line please? Greg Wooledge <greg@wooledge.org> - 2021-06-13 15:20 +0200
      Re: Is invoking the -locker option of xautolock to run a script known?  Could I be helped with an xautolock code line please? The Wanderer <wanderer@fastmail.fm> - 2021-06-13 15:40 +0200
        Re: Is invoking the -locker option of xautolock to run a script  known? Could I be helped with an xautolock code line please? Greg Wooledge <greg@wooledge.org> - 2021-06-13 16:40 +0200
    Re: Is invoking the -locker option of xautolock to run a script  known? Could I be helped with an xautolock code line please? "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2021-06-13 16:40 +0200
  Re: Is invoking the -locker option of xautolock to run a script  known? Could I be helped with an xautolock code line please? Greg Wooledge <greg@wooledge.org> - 2021-06-13 15:20 +0200

csiph-web