Python Forum
script wanted: print the command
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
script wanted: print the command
#1
this one should be simple enough, maybe even for newbies.  i would a script that is given a command in its arguments, prints the command to stderr, runs the command given to it, then if the given command it runs has an exit code different than zero, prints the exit code to stderr, then exits with the exit code of the given command it runs.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
script wanted: print the command - by Skaperen - Dec-08-2017, 04:53 AM
RE: script wanted: print the command - by DeaD_EyE - Dec-08-2017, 09:50 AM
RE: script wanted: print the command - by Skaperen - Dec-09-2017, 02:29 AM
RE: script wanted: print the command - by DeaD_EyE - Dec-10-2017, 11:21 AM
RE: script wanted: print the command - by Skaperen - Dec-11-2017, 02:20 AM
RE: script wanted: print the command - by wavic - Dec-12-2017, 12:02 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  a tree command using Shell Script that displays all the directories recursively apollo 1 1,974 Nov-18-2021, 10:04 PM
Last Post: BashBedlam
  script wanted: UNboxing database output Skaperen 0 1,727 Oct-27-2018, 03:04 AM
Last Post: Skaperen
  command line progam wanted: clock Skaperen 2 2,706 Apr-18-2018, 06:54 AM
Last Post: Gribouillis
  script wanted: clock for text mode screen Skaperen 2 3,007 Dec-26-2017, 01:57 AM
Last Post: Skaperen
  script wanted: ping and wait Skaperen 0 2,307 Dec-10-2017, 05:16 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020