* [Comm] вывод в консоль
@ 2009-07-18 5:49 Occisor
2009-07-18 6:22 ` Rinat Bikov
2009-07-18 8:35 ` Serge Polkovnikov
0 siblings, 2 replies; 14+ messages in thread
From: Occisor @ 2009-07-18 5:49 UTC (permalink / raw)
To: ALT Linux Community general discussions
[-- Attachment #1: Type: text/plain, Size: 586 bytes --]
Подскажите как можно сделать следующее.
Есть некий скрипт, если его запустить в ручную из консоли (имется в виду
консоль из kde (konsole), то в консоли будет различная информация о
выполненых заданиях данного скрипта. Требуется сделать так чтобы при
запуске этого скрипта открывалась konsole и скрипт начинал выполняться в
ней.
[-- Attachment #2: brutalfreak.vcf --]
[-- Type: text/x-vcard, Size: 278 bytes --]
begin:vcard
fn;quoted-printable:=D0=98=D0=BB=D1=8C=D1=8F
n;quoted-printable:;=D0=98=D0=BB=D1=8C=D1=8F
adr:;;;;28;;RF
email;internet:brutalfreak@gmail.com
note;quoted-printable:Jabber: occisor@jabr.ru=0D=0A=
ICQ: 292441788
x-mozilla-html:FALSE
version:2.1
end:vcard
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Comm] вывод в консоль
2009-07-18 5:49 [Comm] вывод в консоль Occisor
@ 2009-07-18 6:22 ` Rinat Bikov
2009-07-18 6:42 ` Occisor
` (2 more replies)
2009-07-18 8:35 ` Serge Polkovnikov
1 sibling, 3 replies; 14+ messages in thread
From: Rinat Bikov @ 2009-07-18 6:22 UTC (permalink / raw)
To: ALT Linux Community general discussions
18 июля 2009 г. 10:49 пользователь Occisor написал:
> Подскажите как можно сделать следующее.
> Есть некий скрипт, если его запустить в ручную из консоли (имется в виду
> консоль из kde (konsole), то в консоли будет различная информация о
> выполненых заданиях данного скрипта. Требуется сделать так чтобы при запуске
> этого скрипта открывалась konsole и скрипт начинал выполняться в ней.
Здравствуйте!
В КДЕ можно создать текстовый файл "Name.desktop" с содержимым:
[Desktop Entry]
Exec[$e]="/home/user/путь/к/вашему/скрипту"
Name=Имя Скрипта для пользователя
Icon="Путь к изображению, не обязательно"
Terminal=true
Type=Application
X-KDE-SubstituteUID=false
--
С уважением, Ринат Биков.
--
Как правильно задавать вопросы:
http://maddog.sitengine.ru/smart-question-ru.html
Помогает:
http://search.altlinux.org
Стоит попробовать:
http://mail.google.com
IRC-канал:
#altlinux на irc.freenode.net
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Comm] вывод в консоль
2009-07-18 6:22 ` Rinat Bikov
@ 2009-07-18 6:42 ` Occisor
2009-07-18 7:17 ` dftbhdfthb dsymdtuyd
2009-07-18 10:55 ` dsydftbhdfthb
2 siblings, 0 replies; 14+ messages in thread
From: Occisor @ 2009-07-18 6:42 UTC (permalink / raw)
To: ALT Linux Community general discussions
[-- Attachment #1: Type: text/plain, Size: 730 bytes --]
Rinat Bikov пишет:
> 18 июля 2009 г. 10:49 пользователь Occisor написал:
>> Подскажите как можно сделать следующее.
>> Есть некий скрипт, если его запустить в ручную из консоли (имется в виду
>> консоль из kde (konsole), то в консоли будет различная информация о
>> выполненых заданиях данного скрипта. Требуется сделать так чтобы при запуске
>> этого скрипта открывалась konsole и скрипт начинал выполняться в ней.
> Здравствуйте!
> В КДЕ можно создать текстовый файл "Name.desktop" с содержимым:
> [Desktop Entry]
> Exec[$e]="/home/user/путь/к/вашему/скрипту"
> Name=Имя Скрипта для пользователя
> Icon="Путь к изображению, не обязательно"
> Terminal=true
> Type=Application
> X-KDE-SubstituteUID=false
>
>
Спасибо, помогло.
[-- Attachment #2: brutalfreak.vcf --]
[-- Type: text/x-vcard, Size: 267 bytes --]
begin:vcard
fn;quoted-printable:=D0=98=D0=BB=D1=8C=D1=8F
n;quoted-printable:;=D0=98=D0=BB=D1=8C=D1=8F
adr:;;;;28;;RF
email;internet:brutalfreak@gmail.com
note;quoted-printable:Jabber: occisor@jabr.ru=0D=0A=
ICQ: 292441788
x-mozilla-html:FALSE
version:2.1
end:vcard
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Comm] вывод в консоль
2009-07-18 6:22 ` Rinat Bikov
2009-07-18 6:42 ` Occisor
@ 2009-07-18 7:17 ` dftbhdfthb dsymdtuyd
2009-07-18 10:55 ` dsydftbhdfthb
2 siblings, 0 replies; 14+ messages in thread
From: dftbhdfthb dsymdtuyd @ 2009-07-18 7:17 UTC (permalink / raw)
To: ALT Linux Community general discussions
18.07.09, 10:22, "Rinat Bikov" <bikoz.r@gmail.com>:
> В КДЕ можно создать текстовый файл "Name.desktop" с содержимым:
> [Desktop Entry]
> Exec[$e]="/home/user/путь/к/вашему/скрипту"
> Name=Имя Скрипта для пользователя
> Icon="Путь к изображению, не обязательно"
> Terminal=true
> Type=Application
> X-KDE-SubstituteUID=false
Что нужно прописать в .desktop файл, чтобы консоль не закрывалась после выполнения команды ? Например нужно выполнить hddtemp - посмотреть температуру hdd скриптиком или .desktop файл, но консоль после выполнения закрывется и посмотреть результаты выполнения hddtemp проблематично
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Comm] вывод в консоль
2009-07-18 6:22 ` Rinat Bikov
2009-07-18 6:42 ` Occisor
2009-07-18 7:17 ` dftbhdfthb dsymdtuyd
@ 2009-07-18 10:55 ` dsydftbhdfthb
2009-07-18 7:30 ` Rinat Bikov
2 siblings, 1 reply; 14+ messages in thread
From: dsydftbhdfthb @ 2009-07-18 10:55 UTC (permalink / raw)
To: ALT Linux Community general discussions
18.07.2009 06:22, Rinat Bikov пишет:
> В КДЕ можно создать текстовый файл "Name.desktop" с содержимым:
> [Desktop Entry]
> Exec[$e]="/home/user/путь/к/вашему/скрипту"
> Name=Имя Скрипта для пользователя
> Icon="Путь к изображению, не обязательно"
> Terminal=true
> Type=Application
> X-KDE-SubstituteUID=false
Что нужно прописать в .desktop файл, чтобы консоль не закрывалась после
выполнения команды ? Например нужно выполнить hddtemp - посмотреть
температуру hdd скриптиком или .desktop файл, но консоль после
выполнения закрывется и посмотреть результаты выполнения hddtemp
проблематично
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Comm] вывод в консоль
2009-07-18 10:55 ` dsydftbhdfthb
@ 2009-07-18 7:30 ` Rinat Bikov
2009-07-18 7:36 ` dftbhdfthb dsymdtuyd
2009-07-18 7:55 ` dftbhdfthb dsymdtuyd
0 siblings, 2 replies; 14+ messages in thread
From: Rinat Bikov @ 2009-07-18 7:30 UTC (permalink / raw)
To: ALT Linux Community general discussions
18 июля 2009 г. 15:55 пользователь dsydftbhdfthb написал:
> Что нужно прописать в .desktop файл, чтобы консоль не закрывалась после
> выполнения команды ?
Ничего не нужно прописывать в .desktop файл для этого.
Достаточно добавить в конец скрипта команду read, либо
запускать другой скрипт hddtemp.sh, примерно с содержанием:
#!/bin/sh
hddtemp
read
--
С уважением, Ринат Биков.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Comm] вывод в консоль
2009-07-18 7:30 ` Rinat Bikov
@ 2009-07-18 7:36 ` dftbhdfthb dsymdtuyd
2009-07-18 7:55 ` dftbhdfthb dsymdtuyd
1 sibling, 0 replies; 14+ messages in thread
From: dftbhdfthb dsymdtuyd @ 2009-07-18 7:36 UTC (permalink / raw)
To: ALT Linux Community general discussions
18.07.09, 11:30, "Rinat Bikov" <bikoz.r@gmail.com>:
> > Что нужно прописать в .desktop файл, чтобы консоль не закрывалась после
> > выполнения команды ?
> Ничего не нужно прописывать в .desktop файл для этого.
> Достаточно добавить в конец скрипта команду read, либо
> запускать другой скрипт hddtemp.sh, примерно с содержанием:
> #!/bin/sh
> hddtemp
> read
Thanks
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Comm] вывод в консоль
2009-07-18 7:30 ` Rinat Bikov
2009-07-18 7:36 ` dftbhdfthb dsymdtuyd
@ 2009-07-18 7:55 ` dftbhdfthb dsymdtuyd
2009-07-18 8:06 ` Rinat Bikov
1 sibling, 1 reply; 14+ messages in thread
From: dftbhdfthb dsymdtuyd @ 2009-07-18 7:55 UTC (permalink / raw)
To: ALT Linux Community general discussions
18.07.09, 11:30, "Rinat Bikov" <bikoz.r@gmail.com>:
> > Что нужно прописать в .desktop файл, чтобы консоль не закрывалась после
> > выполнения команды ?
> Ничего не нужно прописывать в .desktop файл для этого.
> Достаточно добавить в конец скрипта команду read, либо
> запускать другой скрипт hddtemp.sh, примерно с содержанием:
> #!/bin/sh
> hddtemp
> read
hddtemp.sh
#!/bin/sh
/usr/sbin/hddtemp /dev/hda
read
hddtemp.desktop
[Desktop Entry]
Type=Application
Name=HDDtemp
Icon=
Exec=/home/ed/Programm/System/hddtemp.sh
Terminal=true
Categories=FileManager;Utility;Qt;KDE;
X-KDE-SubstituteUID=false
Увы, но только открывется консоль без выполнения скрипта
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Comm] вывод в консоль
2009-07-18 5:49 [Comm] вывод в консоль Occisor
2009-07-18 6:22 ` Rinat Bikov
@ 2009-07-18 8:35 ` Serge Polkovnikov
2009-07-19 0:34 ` Occisor
1 sibling, 1 reply; 14+ messages in thread
From: Serge Polkovnikov @ 2009-07-18 8:35 UTC (permalink / raw)
To: ALT Linux Community general discussions
On Saturday 18 July 2009 08:49:17 Occisor wrote:
> Подскажите как можно сделать следующее.
> Есть некий скрипт, если его запустить в ручную из консоли (имется в виду
> консоль из kde (konsole), то в консоли будет различная информация о
> выполненых заданиях данного скрипта. Требуется сделать так чтобы при
> запуске этого скрипта открывалась konsole и скрипт начинал выполняться в
> ней.
Откуда-нибудь запускайте konsole -e vash_script.sh --noclose
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2009-07-19 0:34 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-18 5:49 [Comm] вывод в консоль Occisor
2009-07-18 6:22 ` Rinat Bikov
2009-07-18 6:42 ` Occisor
2009-07-18 7:17 ` dftbhdfthb dsymdtuyd
2009-07-18 10:55 ` dsydftbhdfthb
2009-07-18 7:30 ` Rinat Bikov
2009-07-18 7:36 ` dftbhdfthb dsymdtuyd
2009-07-18 7:55 ` dftbhdfthb dsymdtuyd
2009-07-18 8:06 ` Rinat Bikov
2009-07-18 8:13 ` dftbhdfthb dsymdtuyd
2009-07-18 8:34 ` Rinat Bikov
2009-07-18 8:51 ` dftbhdfthb dsymdtuyd
2009-07-18 8:35 ` Serge Polkovnikov
2009-07-19 0:34 ` Occisor
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git