DaemonForums  

Go Back   DaemonForums > Other Operating Systems > Solaris

Solaris SUN Solaris & OpenSolaris.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 24th December 2008
whispersGhost's Avatar
whispersGhost whispersGhost is offline
Real Name: heather
Package Pilot
 
Join Date: May 2008
Location: ny
Posts: 168
Smile Open Solaris sending 2 launcher command to terminal with && ?

Hi

Open Solaris 2008.11

i am trying to combine 2 commands from a launcher
so i can automate a process of burning dvdrw
since the built in program just wil not do it without errors

i made 2 launchers on that makes the iso file

mkisofs -o session.iso -R session


the other that does the burn provcess

cdrecord dev=7,1,0 -v -sao session.iso

But && does not work like the tradional BSD fashion

mkisofs -o session.iso -R session && cdrecord dev=7,1,0 -v -sao session.iso

Therefore i made 2 launchers

i have placed both these launcher icons in my home folder with a working folder called session

This way if wann burn something as an example like a few (family memories avi files) i drop them into the folder,and it does work for me,but i have to do them in 2 phases not just one

it creates the session.iso file then it will write to DVDRW


Thank You
__________________
The journey is better then the destination

Last edited by whispersGhost; 24th December 2008 at 05:45 PM.
Reply With Quote
  #2   (View Single Post)  
Old 24th December 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

It's always possible that the launcher uses exec(), which basically launches a program the way the shell does, rather then through the shell itself.

you could try: sh -c "mkisofs -o session.iso -R session && cdrecord dev=7,1,0 -v -sao session.iso" if you want 1 launcher. But note, the commands after sh -c must be quoted when the shell sees it, or it won't work right.

Another way would be to create a shell script with the commands, and execute the shell script from the launcher. In my home directory, I have a ~/sh folder in my $PATH; just for personal scripts and programs (some people use ~/bin), which I made for situations like these.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.

Last edited by TerryP; 24th December 2008 at 05:57 PM.
Reply With Quote
  #3   (View Single Post)  
Old 24th December 2008
whispersGhost's Avatar
whispersGhost whispersGhost is offline
Real Name: heather
Package Pilot
 
Join Date: May 2008
Location: ny
Posts: 168
Thumbs up Thank you :)

Ya that worked thank you so much

For now i used what you had metioned.

sh -c "mkisofs -o session.iso -R session && cdrecord dev=7,1,0 -v -sao session.iso"

And you were right about the quotes.
i was missing the last one and it did not work till i put it in.

Later on i will play with that additional option you added

Thanks again
__________________
The journey is better then the destination
Reply With Quote
  #4   (View Single Post)  
Old 24th December 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

missing the darn quotes is the worlds most common goof up :-(, my shell often shouts at me as well lol. On shell script, you basically put a '#!/bin/sh' on the first line of the file, then write in commands as if each line of text was a command line in your shell. Then save it, set the file executable with chmod, so you can run it like a program (e.g. '$ ~/test.sh')
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: Encoding // Pure Terminal // Virtual Terminal vermaden Guides 1 25th June 2010 08:02 AM
Sending PRs through KMail BSDKaffee Guides 0 8th October 2008 10:39 PM
Mutt not sending email cssgalactic FreeBSD General 4 3rd July 2008 09:54 PM
System stopped sending e-mail messages. bigb89 FreeBSD General 4 30th June 2008 05:20 PM


All times are GMT. The time now is 06:36 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick