Monday, May 6, 2024
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 5771  / 1 Year ago, sat, january 21, 2023, 9:46:35

I want one script to open several Tabs in different folders.



While searching I found this entry, but an exchange like seen below did open a Terminal with three tabs in my home folder. The error message showed:



Failed to parse arguments: Unknown option --execute=cd /some/thing/


The script looks like this:



#!/bin/sh
gnome-terminal --tab --execute="cd /some/thing/"
--tab --execute="cd /home/"
--tab --execute="cd /home/"
exit 0


A Variation with --working-directory="/some/thing/" did also not help.
Can you see a mistake?


More From » command-line

 Answers
7

The following works for me on oneiric. You can use this in place of your version:



#!/bin/bash
gnome-terminal --tab --working-directory="/var/www/" --tab --working-directory='/home/' --tab --working-directory='/home/'
exit 0

[#40492] Sunday, January 22, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
olltea

Total Points: 238
Total Questions: 115
Total Answers: 107

Location: Moldova
Member since Tue, Feb 7, 2023
1 Year ago
;