Search found 10 matches
- Wed Nov 28, 2018 9:36 pm
- Forum: Python
- Topic: Management of duplicate file names
- Replies: 4
- Views: 996
Re: Management of duplicate file names
I must have messed up cutting and pasting somehow. But I saw your other reply and thank you very much. It not only works great but I learned a lot too!
- Wed Nov 28, 2018 9:31 pm
- Forum: General programming discussion
- Topic: Picture frame project, managing files
- Replies: 7
- Views: 4139
Re: Picture frame project, managing files
Thank you so much Gordon! It works like a charm. And also thank you for adding the comments that made it understandable and a great learning experience!
- Wed Nov 28, 2018 1:08 am
- Forum: Python
- Topic: Management of duplicate file names
- Replies: 4
- Views: 996
Management of duplicate file names
Apologies for cross posting this but I'm moving it from beginner discussion to Python. I'm struggling with my first python script and not making any progress past my first stab at it. I'm trying to create a script that will compare file names in 2 directories, /source and /target, move duplicate fil...
- Mon Nov 26, 2018 3:20 pm
- Forum: General programming discussion
- Topic: Picture frame project, managing files
- Replies: 7
- Views: 4139
- Mon Nov 26, 2018 2:49 pm
- Forum: General programming discussion
- Topic: Picture frame project, managing files
- Replies: 7
- Views: 4139
Re: Picture frame project, managing files
What scripting language are you using? It would be pretty simple to do a brute-force check in Python. Since I started the thread I've been watching Python tutorials trying to figure out how to do this. 5 days later and I'm still not an expert, go figure... But it's interesting and I'm making progre...
- Wed Nov 21, 2018 9:00 pm
- Forum: Troubleshooting
- Topic: Bash: No such file or directory
- Replies: 8
- Views: 4460
Re: Bash: No such file or directory
if you cd into /frame and type ./startframe.sh Does it work? Yes I does, and the is script running on boot. I'll take the advice offered above and read up on absolute and relative paths. As I mentioned this thing has been hanging on the wall a long time, since I switched out the via epia-m system b...
- Wed Nov 21, 2018 3:59 pm
- Forum: General programming discussion
- Topic: Picture frame project, managing files
- Replies: 7
- Views: 4139
Picture frame project, managing files
I'm updating an electronic picture frame I made a long time ago and need to find or create a script to avoid duplicate file names but don't know where to start. All drives and directories are mounted and accessible, slide show script is running, and I've automated adding new pictures to the frame. I...
- Tue Nov 20, 2018 9:27 pm
- Forum: Troubleshooting
- Topic: Bash: No such file or directory
- Replies: 8
- Views: 4460
Re: Bash: No such file or directory
If I try to execute it in a terminal by typing "/frame/startframe.sh" I get "bash: /frame/startframe.sh: No such file or directory" If I cd to the /frame directory and type "frame.sh" I get "frame.sh: command not found" If I add sudo before the commands above...
- Tue Nov 20, 2018 9:01 pm
- Forum: Troubleshooting
- Topic: Bash: No such file or directory
- Replies: 8
- Views: 4460
Re: Bash: No such file or directory
A couple of quick thoughts: 1) Why hashbang to sh and not bash? sh on the Pi is a symbolic link that points to dash on Stretch. 2) Do you have the execute flag set? 1) No reason other than I've had it that way for over a decade. I switched it to bash and it does the same thing, although it also is ...
- Tue Nov 20, 2018 5:57 pm
- Forum: Troubleshooting
- Topic: Bash: No such file or directory
- Replies: 8
- Views: 4460
Bash: No such file or directory
Hopefully someone can offer some advice. I've struggled with this for a week and have made no progress so I'm appealing to the experts. I'm trying to run a script called startframe.sh If I get to it via file manager, double click it, then click on Execute, it runs. If I try to execute it in a termin...