Giter VIP home page Giter VIP logo

Comments (3)

proseltd avatar proseltd commented on July 26, 2024

Hello! Sorry for taking so long to come to this. I'm curious as to why you're running multiple channels this way? Telepathy supports working with multiple channels at the same time, for example "$ telepathy -t CHANNELONE -t CHANNELTWO -t CHANNEL3 -c"

However, to address your issue directly, this seems to be a clash with multiple processes running at the same time, causing the .session file Telepathy runs on to crash. I'm working on alternative methods for this file (at the moment it's a sqlite database that cannot be opened more than once before being closed). There's a potential that a future update will fix this.

from telepathy-community.

AcidkoHorkaCokolada avatar AcidkoHorkaCokolada commented on July 26, 2024

Hi Jordan,
thank you for reply, i need to scrap over 200 channels(the list changes form time to time), thats why i use loop.
is there a know workaround? i can use? like for example:
subprocess.run('telepathy -t' + channel+' -f',shell=True)
?

from telepathy-community.

proseltd avatar proseltd commented on July 26, 2024

Hi there!

I would (and have in the past done) a shell script for this, like so:

#!/bin/bash
declare -a StringArray=("CHANNEL_ONE" "CHANNEL_TWO" "CHANNEL_THREE")
for val in ${StringArray[@]}; do
python3 /path/to/telepathy -t $val -c
done

Once you've put that in a file, make it executable with:

chmod +x FILENAME.sh

and then you can run it simply with:

./FILENAME.sh

You'll need to declare the full list in the string array, but I'm sure there's also a way to enumerate over a list in a file. This also works with throwing the bash script into a cron job if you want to automatically do this every x amount of days.

Let me know if you need anything else!

from telepathy-community.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.