Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Debian 9 - missing files from /usr/bin like batch at

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
krelvinaz
Posts: 48
Joined: 2012-05-04 01:35

Debian 9 - missing files from /usr/bin like batch at

#1 Post by krelvinaz »

So today I went to run a batch command and got this

-bash: batch: command not found

Weird.

Then I tried an at command and got the same.

-bash: at: command not found

Check on another server using Debian 7 and the two commands are located in /usr/bin

Code: Select all

-rwxr-xr-x 1 root root 152 Mar  4  2012 /usr/bin/batch
-rwsr-sr-x 1 daemon daemon 40832 Mar  4  2012 /usr/bin/at
and they are not there on the Debian 9 box. I don't have another Debian 9 loaded so I not quite sure how or what the issue but it looks like I am missing some files from /usr/bin

System is running fine, no errors etc... just noticed those files are missing.

Any ideas?

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Debian 9 - missing files from /usr/bin like batch at

#2 Post by GarryRicketson »

There is no such command on Debian normally, "batch", that is a windows and
dos command.
Somebody could have made something up and named it "batch", and put it in
the /usr/bin dir , but it is not normal. What does the command do ?

User avatar
krelvinaz
Posts: 48
Joined: 2012-05-04 01:35

Re: Debian 9 - missing files from /usr/bin like batch at

#3 Post by krelvinaz »

Use it all the time on AiX, Solaris, Debian 7.

Man page from Debian 7

Code: Select all

AT(1)                                                                                                                      AT(1)

NAME
  at, batch, atq, atrm - queue, examine or delete jobs for later execution

SYNOPSIS
  at [-V] [-q queue] [-f file] [-mldv] timespec...
  at [-V] [-q queue] [-f file] [-mkdv] [-t time]
  at -c job [job...]
  atq [-V] [-q queue]
  atrm [-V] job [job...]
  batch
  at -b

DESCRIPTION
  at  and  batch  read  commands  from  standard  input or a specified file which are to be executed at a later time, using
  /bin/sh.

  at    executes commands at a specified time.

  atq   lists the user's pending jobs, unless the user is the superuser; in that case, everybody's jobs are listed.   The
         format of the output lines (one for each job) is: Job number, date, hour, queue, and username.

  atrm  deletes jobs, identified by their job number.

  batch executes  commands  when system load levels permit; in other words, when the load average drops below 1.5, or the
        value specified in the invocation of atd.
Using batch, when you type batch, followed by a command and ^D, the command will start immediately in background.

Use at, you can specify when you want the scrip to run such as
at now + 5min

Both are as if you put the command in a cron schedule and run as /bin/sh

A website with clear descriptions of them and how to use them fo Unix and Linux:
https://www.computerhope.com/unix/uat.htm

User avatar
krelvinaz
Posts: 48
Joined: 2012-05-04 01:35

Re: Debian 9 - missing files from /usr/bin like batch at

#4 Post by krelvinaz »

Apparntly it was removed but their is a package for it.

https://packages.debian.org/stable/at

Code: Select all

  > apt-get install at
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  The following NEW packages will be installed:
    at
  0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  Need to get 47.5 kB of archives.
  After this operation, 148 kB of additional disk space will be used.
  Get:1 http://mirrors.linode.com/debian stretch/main amd64 at amd64 3.1.20-3 [47.5 kB]
  Fetched 47.5 kB in 0s (2,900 kB/s)
  Selecting previously unselected package at.
  (Reading database ... 46301 files and directories currently installed.)
  Preparing to unpack .../archives/at_3.1.20-3_amd64.deb ...
  Unpacking at (3.1.20-3) ...
  Setting up at (3.1.20-3) ...
  Created symlink /etc/systemd/system/multi-user.target.wants/atd.service  /lib/systemd/system/atd.service.
  Processing triggers for systemd (232-25+deb9u1) ...
  Processing triggers for man-db (2.7.6.1-2) ...
Now, they are there.

Code: Select all

-rwsr-sr-x 1 daemon daemon 51464 Dec  8  2016 /usr/bin/at
-rwxr-xr-x 1 root root 152 Dec  8  2016 /usr/bin/batch
I don't remember ever having to install them before but I really can't find any websites which talk about them not being there or being removed from default apps in Debian 9

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Debian 9 - missing files from /usr/bin like batch at

#5 Post by GarryRicketson »

Ok, sorry , I was thinking "batch" like in .bat files, ... I don't have Debian 9 handy either, but I do see both commands exist on "OpenBsd" as well,
I see this was posted, just now while I am writing, and I was also searching,
it explains, and that was my thought, it is not included in Debian 9,..
Post by krelvinaz » 2017-09-03 05:22
Apparntly it was removed but their is a package for it.

https://packages.debian.org/stable/at

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Debian 9 - missing files from /usr/bin like batch at

#6 Post by Head_on_a_Stick »

Code: Select all

root@Xanadu:~ # apt-file search /usr/bin/batch                                          
at: /usr/bin/batch
libvips-tools: /usr/bin/batch_crop
libvips-tools: /usr/bin/batch_image_convert
libvips-tools: /usr/bin/batch_rubber_sheet
root@Xanadu:~ #
https://wiki.debian.org/WhereIsIt#A.22I ... tall.3F.22

:wink:
deadbang

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Debian 9 - missing files from /usr/bin like batch at

#7 Post by GarryRicketson »

Off Topic, but Good to see you H_O_A_S, and thanks.







----------------
For the Birds

Post Reply