Simple bash question: how to script into new shell?
I want to have a script that opens a new terminal and calls some commands. I am to stupid. :oops:
Pink Chick wrote:
*Smack*
This should be ok. I was tired of typing "makepkg foobar", and so I wrote a tiny dirty nautilus script to do that for me. Unfortunately, it worked in the background. Not bad, if you KNOW your package is ok, but in case of errors.
Thank you all.
hmm sounds like an interesting idea... i don't use nautilus myself... but i could see it being cool to double click a PKGBUILD file and have it run makepkg...
Similar Messages
-
I have forgotten my answers to my security questions, how do i setup new security questions and answers?
Welcome to the Apple Community.
Start here (change country if necessary) and navigate to 'Password and Security', reset your security questions using the link provided, you will receive an email to your rescue address, use the link in the email and reset your security questions.
If that doesn't help, you don't receive a reset email or you don't have a rescue address, you should contact AppleCare who will initially try to assist you with a reset email or if unsuccessful will pass you to the security team to reset your security questions for you.
If you are in a region that doesn't have international telephone support try contacting Apple through iTunes Store Support. -
Simple/silly question: how do I set/change default font/color for outgoing mail messages?
Just a suggestion..........
Download Thunderbird. Easier to use when it comes to what you want to do w/your emails. -
HT5312 I forgot my apple security question how can I get new ones
I forgot my apple security questions how do I get new ones
Alternatives for Help Resetting Security Questions and/or Rescue Mail
1. If you have a valid rescue email address, then use this procedure:
Rescue email address and how to reset Apple ID security questions.
2. Fill out and submit this form. Select the topic, Account Security. You must
have a Rescue Email to use this option.
3. This is the only option if you do not already have a valid Rescue Email.
These are telephone numbers for contacting Apple Support in your country.
Apple ID- Contacting Apple for help with Apple ID account security. Select
the appropriate country and call. Ask to speak to the Account Security Team.
Note: If you have already forgotten your security questions, then you cannot
set up a rescue email address in order to reset them. You must set up
the rescue email address beforehand.
Your Apple ID: Manage My Apple ID.
Apple ID- All about Apple ID security questions. -
I forget my answers security question how i can rest new security question and new answers?
I know the password but i forget the answers of security questionsAlternatives for Help Resetting Security Questions and/or Rescue Mail
1. If you have a valid rescue email address, then use this procedure:
Rescue email address and how to reset Apple ID security questions.
2. Fill out and submit this form. Select the topic, Account Security. You must
have a Rescue Email to use this option.
3. This is the only option if you do not already have a valid Rescue Email.
These are telephone numbers for contacting Apple Support in your country.
Apple ID- Contacting Apple for help with Apple ID account security. Select
the appropriate country and call. Ask to speak to the Account Security Team.
Note: If you have already forgotten your security questions, then you cannot
set up a rescue email address in order to reset them. You must set up
the rescue email address beforehand.
Your Apple ID: Manage My Apple ID.
Apple ID- All about Apple ID security questions. -
SQL-Scripts into a Shell script
Hi!
After creating the database on a Linux machine, we need to create our Schema in that database.This Schema has many objects(tables, views,
procs, triggers etc.). So executing each individual script would not be sensible. Is it possible to pack all sql scripts into one shell script and run that one?
Thanks for your feedback/examples/links!If it's one-off task, why not put all of them in a SQL file and run it from SQL* Plus rather than using shell to cause sql plus which will in turn have to call the script?
If it's a recurring task and you insist that you want to do it from Unix shell, you can do something like this:
Place all scripts in a single file and put it under $HOME for ex. (save it as run_all_scripts.sql)
Then write a shell script something like this:
#!/bin/ksh
connect_schema=scott/tiger
sqlplus -s $connect_schema <<EOF
@$HOME/run_all_scripts.sql
EOF
Regards
Venkat -
UCCX Scripting Question- combining multiple scripts into one -Transfers/subflows
I need to separate an existing call center into two because their hours are different and the main lines have separate DIDs.
The two separate call centers must have the same agents and same queues, including Agent Personal Queues as Menu options. Callers need to be able to choose to go to either the Main Queues, or listen to another menu that allows them to select and option to be sent to a personal queue
I have three separate scripts, CCA, CCB, and Agent Personal Queue, same queues, same switch (calledNumber) with the same trigger(DNs) and I was about to create three separate applications, but then realized the triggers can only point to one application
What is the best way to set this up?
Option A
Script A (CCA )- Has all the "Switch-(Called Number) with all the trigger
Script B -Has no Switch, just Transfer to extension(and then the call goes out to the trigger)
Script C - is the Personal Queue Script
Option B
Combine all three scripts into one-separate the TOD logic, have the same queues and menus beneath each call center and Personal Queue tree, is going to be a really large fileHello-
I would likely use a single script for your application. That being said looking at your screenshot it looks like your script could use some clean up and consolidation.
DJ -
Simple Query Question - How do I return the Last 3 records of a Table?
Question.
For example, I have a table that has 50 records.
How do I, specify in SQL to only return the last 3 records of the table.
Select a.* from table a where ????I was just trying to show an example to a friend on
how something like this would work and if it was even possible. But it won't work. Here's a simple example:
SQL> create table emp
2 (id)
3 as
4 select object_id
5 from all_objects
6 order by object_id;
Table created.
SQL> select *
2 from (select rownum rn
3 ,b.*
4 from emp b)
5 where rn > ( select (max(rownum) - 3)
6 from emp)
7 ;
RN ID
40830 55891
40831 55892
40832 55893So far, so good. These are the "last 3" rows inserted. Now delete a bunch of rows and insert 3 new ones:
SQL> delete emp where id < 40000;
33423 rows deleted.
SQL> commit;
Commit complete.
SQL> insert into emp values (60000);
1 row created.
SQL> insert into emp values (60001);
1 row created.
SQL> insert into emp values (60002);
1 row created.
SQL> commit;
Commit complete.
SQL> select *
2 from (select rownum rn
3 ,b.*
4 from emp b)
5 where rn > ( select (max(rownum) - 3)
6 from emp)
7 ;
RN ID
7410 55891
7411 55892
7412 55893Here's the problem. Even though the "last 3 rows" are 60000 - 60002, I still get the same ones as the first query. -
Xsl question: how to start a new table if recordnumber exceeds 22
Hi.
I was hoping someone could help me with this problem...
I got a simple table where I receive 4 variables from the xsql
query:PNS (nom. size), POD (dia.(mm)), PWTH (Wall th.(mm)) and
PSCH (Schedule). The result is presented on a web-page, but
because we also want to print it out, we are not able to present
more than 22 records in each table. How do I tell the XSL to
start printing a new table when it has reached 22 records?
Example of XML:
<ROWSET>
<ROW>
<PNS></PNS>
<POD></POD>
<PWTH></PWTH>
<PSCH><PSCH>
</ROW>
<ROW>
<PNS></PNS>
<POD></POD>
<PWTH></PWTH>
<PSCH><PSCH>
</ROW>
</ROWSET>
Example of XSL:
<table class="no" style="width:170mm;padding:1pt;"
cellspacing="0" border="1">
<tr>
<td class="b">Nom. Size(in)</td>
<xsl:for-each select="WALLTHICKNESS/WALLTHICKNESS_ROW">
<td class="lb"><xsl:value-of select="PNS"/></td>
</xsl:for-each>
</tr>
<tr>
<td class="t">dia.(mm)</td>
<xsl:for-each select="WALLTHICKNESS/WALLTHICKNESS_ROW">
<td class="lt"><xsl:value-of select="POD"/></td>
</xsl:for-each>
</tr>
<tr>
<td class="t">Wall th.(mm)</td>
<xsl:for-each select="WALLTHICKNESS/WALLTHICKNESS_ROW">
<td class="lt"><xsl:value-of select="PWTH"/></td>
</xsl:for-each>
</tr>
<tr>
<td class="t">Schedule</td>
<xsl:for-each select="WALLTHICKNESS/WALLTHICKNESS_ROW">
<td class="lt"><xsl:value-of select="PSCH"/> </td>
</xsl:for-each>
</tr>
</table>
Regards,
Terje K.DOMParser parser=new DOMParser();
XMLDocument xmlDocument=parser.getdocument();
Node node=xmlDocument.selectSingleNode("/ROWSET/ROW");
Element element=xmlDocument.createElement(String tagName)
node.appendChild(element); -
Import Existing Sap Script into new script
Hi all,
I have a SAP Script object. I downloadd it now how to import that txt file into R/3 as a SAP Script.
Suggess.
Thanks
Sankethi,
Use program RSTXSCRP -
Simple Java Question - How to Overwrite Set
After working so much in Java, wondering how do i overwrite java.util.Set
My pojo is Set of associated object. For example
class Parent
private Set child = new HashSet(0);
public Set getChild() {
return this.child;
I wanna overwrite set of child objects in pojo with the set passed from UI tier
Any pointers/suggestions will be highly appreciated
Regards
Bansipublic void setChild(Set child) { this.child = child; }or if you need more control over the Set instance:
public void setChild(Set child)
this.child.clear();
this.child.addAll(child);
} -
Stupid question How to Import into Motion???
Just curious how to import video into Motion, can't get it to go. I use a sony ex3, and Final Cut Pro.
Help please, just getting started!!! Thanks ahead of timeFCS is sooo easy to use it's insane... easy way to import - right click the clip in FC and Send To~ Motion / Color
That's the ultra basic persons way :P -
Simple IPhoto Questions-How to reduce picture file size?
Hello,
I know how to reduce the size of photos using the Mail program, but is there a simple way to reduce the size of photo files and keep them for sending through the internet at later dates. I would like to keep the photos at their original size for viewing, but transfer photos to a file where they will be used to send over the net in much smaller format size.
thanksAs Larry says, you can resize the pics on Export using the File -> Export command.
and keep them for sending through the internet at later dates.
The intention in iPhoto is that you would only reduce the size on a case-by-case basis, rather than resize the whole library. As iPhoto always maintains the Originals this require quite a lot of disk space
Regards
TD -
Simple formatting question for mail-script
I would like to edit the script below, so that theSubject ends up on a line of it's own,
and messageURL indented on a new line below. It's important that it's indented.
As it is now, the sixth line from the bottom counted; "make new entry with properties
{name:theSubject & messageURL}" puts everything on the same line.
tell application "Mail"
try
set theSelection to the selection
repeat with theMessage in theSelection
my importMessage(theMessage)
end repeat
end try
end tell
on importMessage(theMessage)
tell application "Mail"
try
set theSubject to subject of theMessage
set messageURL to "message://%3C" & (message id of theMessage) & "%3E"
tell application "TaskPaper"
tell front document
make new entry with properties {name:theSubject & messageURL}
end tell
end tell
end try
end tell
end importMessage
Thanks in advance,
Hakan
Message was edited by: swedishstargazerHow do I create a new entry with messageURL indented?
Here's an approximate example of what I get with TaskPaper when I run your script as modified in my previous post:
Cyberlettre du 19-01-2011 - Pétition - Tunisie
message://%3C20110120170231.7BEB23D619@pmta4-1-fe10%3E
Haïti : un an après le séisme
message://%3C5464456.3052551294847006313.JavaMail.root@server8565%3E
Surely I don't understand what you mean by “indented", since I would have considered lines 2 and 4 above as “indented”. -
Simple SQL Question: How to reference an alias identifier in a subquery?
SELECT (subquery, function, or expression) alias,
(SELECT ... FROM tab2 WHERE col=alias)
FROM tab1 WHERE ...
How to do this in Oracle (referencing alias in a subquery)? Thanks.drop table tab1;
create table tab1(col varchar2(30));
insert into tab1 values('a');
insert into tab1 values('b');
insert into tab1 values('c');
insert into tab1 values('a');
commit;
drop table tab2;
create table tab2 (col varchar2(30));
insert into tab2 values('a');
insert into tab2 values('b');
commit;
SELECT t1.*,
(SELECT col
FROM tab2 t2
WHERE t2.col = t1.alias) AS scalar_t2_col
FROM (SELECT col,
LOWER (UPPER (col)) AS alias
FROM tab1) t1;Or analogously...
WITH t1 AS (
SELECT col,
lower(upper(col)) AS alias
FROM tab1)
SELECT t1.*,
(SELECT col
FROM tab2 t2
WHERE t2.col = t1.alias) AS scalar_t2_col
FROM t1;
Maybe you are looking for
-
Adobe PDF Documents - Windows Terminal Server, tips ?
Hi, I am looking for some tips. We provide managed hosted servers for medium sized companies and for years have been using Adobe for the creation, manipulation and viewing of PDF's However since all these servers are running Terminal Services we find
-
Where is the "Scrollable Frame" on the Overlay Creator panel?
I can't seem to find the "Scrollable Frame" on my Overlay Creator panel and now I'm caught in the middle. Is there anything that I missed? I can only see the following: Hyperlink Slideshow Image Sequence Audio & Video Panorama Web Content Pan & Zoom.
-
My apple mail quits when I type in a subject on a new message.
Currently running 10.6.8 and the Apple Mail application quits when I type in a subject on a new message or replying. What will fix this?
-
Where is the apple in the menu?
Just bought a Mac Mini and would, at some point, like to shut it down. According to the instruction book, I only need to click on the apple, located conveniently on the screen, and follow the menu options. But that is a vicious lie, because there is
-
Can anyone assist me until recently my contacts were synchronised between iphone iPad and iMac via the cloud I now find that the opponents is loosing contacts?