Python Forum
Script for media content and redirect in to a file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script for media content and redirect in to a file
#1
I have multiple tape and want to fetch data from the tape. I have command to fetch data but as there are long list of media ids (More than 300 medias). So I want an script by which i can automate the process. Scene is as below:

I have create a text file "Media.txt" and copy list of media as :

1234L5
2345L5
3456L5
4567L,5
5678L6

I have command which can give me output of data which is available on media:

<Install Path>\mediacontent.exe -mediaid media_id -U

Where install path is c:\Program Files\Software\

Where media_id is taken from the text file one by one.

I wants an single script which perform below task:
  • Read media id from the file
  • Run command for each media and redirect the output into a file in same location with name media_id.out
  • Combine the content of all file in single file.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How would I be able to detect a media player app playing a video. phpjunkie 2 526 Oct-16-2023, 02:09 PM
Last Post: phpjunkie
  redirect STDIO in the Python code Skaperen 6 1,223 Jul-05-2023, 12:23 AM
Last Post: Skaperen
  Python & Windows Media Player Extra 9 4,755 Apr-05-2022, 10:34 PM
Last Post: Extra
  Extracting Specific Lines from text file based on content. jokerfmj 8 2,872 Mar-28-2022, 03:38 PM
Last Post: snippsat
Thumbs Up Parsing a YAML file without changing the string content..?, Flask - solved. SpongeB0B 2 2,224 Aug-05-2021, 08:02 AM
Last Post: SpongeB0B
  Adding variable to Python code - media sentiment analysis Marietje 3 2,512 May-25-2021, 05:15 PM
Last Post: jefsummers
  stderr redirect to file fmr300 2 3,496 Apr-03-2021, 01:31 AM
Last Post: fmr300
  Python - Import file sequence into Media Pool jensenni 1 2,082 Feb-02-2021, 05:11 PM
Last Post: buran
  Opening file and outputting its text content example leodavinci1990 1 1,849 Oct-12-2020, 05:33 AM
Last Post: buran
  how to view file content of .docx while in Recycling bin NeoPy1 0 1,384 Sep-16-2020, 10:11 PM
Last Post: NeoPy1

Forum Jump:

User Panel Messages

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