Ctrl-c in bash kill openbox started from rc file as background job

Hi,
Ctrl-c in bash kill openbox started from rc file as background job.
strange, isn't it ?

I want to have openbox in the job list of a bash. as if my xinitrc was "exec xterm" and I manualy enter the "openbox &" commande in the xterm window. I suppose this is a common wish : telling bash to read from file then from keyboard, but that not exactly what bashrc do.
"ps j" for openbox started in bashrc
PPID   PID     PGID  SID   TTY       TPGID STAT UID    TIME COMMAND
1769  1773  1773   845 pts/0     1752 S     1000   0:00 xterm -e bash  --rcfile ~/bin/xsession.sh
       1  1780  1773   845 pts/0     1752 S     1000   0:00 /usr/bin/dbus-launch --sh-syntax --exit-with-session
1773  1783  1783  1783 pts/2     1805 Ss    1000   0:00 bash --rcfile ~/bin/xsession.sh
1783  1795  1783  1783 pts/2     1805 S     1000   0:00 /usr/bin/openbox --startup /usr/lib/openbox/openbox-autostart OPENBOX
1783  1805  1805  1783 pts/2     1805 R+    1000   0:00 ps j
"ps j" for openbox started by keyboard or PROMPT_COMMAND
1718  1722  1722   845 pts/0     1701 S     1000   0:00 xterm -title Login -e bash  --rcfile ~/bin/xsession.sh
       1  1729  1722   845 pts/0     1701 S     1000   0:00 /usr/bin/dbus-launch --sh-syntax --exit-with-session
1722  1732  1732  1732 pts/2     1747 Ss    1000   0:00 bash --rcfile ~/bin/xsession.sh
1732  1744  1744  1732 pts/2     1747 S     1000   0:00 openbox
1732  1747  1747  1732 pts/2     1747 R+    1000   0:00 ps j
ps have PGID equal to the bash TPGID, so it is foreground. openbox from PROMPT_COMMAND have his own PGID, so it is background. openbox from bashrc share PGID wish bash ... so if bash do not consume Ctrl-c signal openbox receive it ? I assume it is some things like this, but why ? INVOCATION and JOB CONTROL sections in bash manpage do not seems describe this, so that's a strange behaviour.

Similar Messages

  • HT201250 i am using for first time the time machine and an external hard drive because I want to erase my macbook and start from zero files. do i keep my files in the portable hard disk when I connect it again with the macbook or the time machine will era

    i am using for first time the time machine and an external hard drive because I want to erase my macbook and start from zero files. Am i keeping my files in the portable hard disk when I will connect it again with the macbook or the time machine will erase all?
    I would like to know if after I erase all my data, empy hard drive inside the macbook, the time machine will erase all my files that I have saved in my "WD "My passport" external hard drive

    Welcome to Apple Support Communities
    Time Machine has to erase the external disk in order to make backups. Before setting Time Machine up, copy the files of your external disk to the hard disk of the Mac in order not to lose them, and then, set up Time Machine. The first backup will start automatically.
    If you want more information about Time Machine, read the Pondini's site > http://pondini.org

  • How can I recover a book I started from a file?

    I have recently installed the iPhoto 9.2.1 from App Store.
    I am having many problems with iPhoto after an electrical cut when I was working with it.
    First, when I opened iPhoto immediately after that, many of the events appeared in black box, when I open a file of these,  black boxes appears, photos could not being seeing, but click in one, the photo appears.
    I realized that those files I did not working with them for long.
    I am interested to recover them, How could I do it?
    I copy iPhoto Library into a external hard disc to safe and start from the beginning. I need to work in one book.
    Second,The photos for that book were in the external hard disc. I imported them into iPhoto and start working. I thought that everything was solved out.
    This morning when I opened the computer and iPhoto, My work, begun the previous day, was not there, iPhoto ask me if I want to recover iPhoto Library and  thinking that that was my last work, I said yes.
    But it was not, It was the old library, but the work that interests me has disappeared.
    How can I recover this work I started? It must be in some place.
    Thanks for your advice

    Sorry, it'll be impossible for any of us (the forum regulars) to post in this thread without making obvious suggestions like this; it's safe to ignore these suggestions, I understand that you are powerless here to make reasonable suggestions like "Fire the incompetent translation firm that can't keep up with its clients and retain one that actually has the licenses for the apps necessary to complete the project."  If nothing else, all of the people who search Google for the phrase "translation downsave CS5 CS4 book" will learn that the best answer is "tell your translation supplier that they will lose your business if they fail to upgrade."
    But in your case - no, I know of no such script to re-save a CS4 book from IDMLs spat out of CS5. The scripting forum is thataway; maybe they know of a script someone else has already written for this purpose. Mostly because, especically in a book file, one of the steps before saving the INDDs and book in CS4 should be "a human compares the IDML opened in CS4 against the INDDs in CS5, or PDFs generated from same, before Saving As CS4 INDD."

  • System exception while deleting the file from app server in background job

    Hi All,
    I have a issue while the deleting the file from application server.
    I am using the statement DELETE DATASET in my program to delete the file from app server.
    I am able to delete the file from the app server when i run the program from app server.
    When i run the same report from background job i am getting the message called System exception.
    Is there any secuirity which i need to get the issue.
    Thank You,
    Taragini

    Hi All,
    I get all the authorization sto delete the file from application serever.
    Thing is i am able to run the program sucessfully in foreground but not in the background .
    It i snot giving any short dump also just JOB is cancelled with the exception 'Job cancelled after system exception ERROR_MESSAGE'.
    Can anybody please give me suggestion
    Thanks,
    Taragini

  • Macbook Retina, Loud Idle Fans, Fans start from downloading files

    hello
    i have a early 2013 retina 15" macbook pro
    is it normal that the fans kick in from browsing in youtube? or when i download 2 big files at the same time.. like 500 MB for example
    i think it cant be normal for a computer like this to have spinning fans when usage is so low
    also my left fan makes a strange noise sometimes, on the right side you only can hear the spinning air from the fan, but not the fan itself,
    on the left side you cleary hear a noise while the macbook is in idle, its not extreme loud, but you can cleary hear the fan fro distance when in idle
    is this normal?
    i trid everything, smc reset, completly reinstalled 10.8.3 but its still the same
    the next apple store is over 1 hour away with my car
    so i hope to find some helpful answers here first please
    Should you hear the fans from a normal working distance when your maschine is in idle with alost no usage
    browsing, downloading files etc..
    thanks in advance
    deniz

    Your computer uses Flash to watch YouTube, and it may make your Mac work harder because it consumes a lot of CPU and memory, so it may be normal. However, it's not normal that fans turn on when you are downloading two files.
    I recommend you to run Apple Hardware Test in order to check if there's something wrong with your computer. To do this, connect the computer to the charger, and hold Option (Alt) and D keys while your Mac is starting to start into Apple Hardware Test. Choose the language, mark the option to run an extended test and start the test. When it finishes, if it shows an error, copy it here and get ready to take the computer to an Apple Store. If not, there's a process which is consuming a lot in the computer

  • Reg: File Extraction from SAP Queries via background job

    Hi ,
    Is it possible to Extract a file to the presentation Server by running the ABAP Query's through SQ01 as a back ground job to generate a file automatically without running it manually.
    I have tried recording the query's thru SQ01 with the File store Option to download it to Excel on the Presentation server.I have used CAll Transaction for SQ01 in the Zprg and submitted that Query to be able to download that Query in the mentioned path .The Zprg was executed via Background job.The file is extracted to the presentation server when the Zprg was executed via Foreground,but its not getting Downloaded to Excel Via Back ground job.
    Please provide me the solution.
    Thanks in advance,
    Prem

    Hi
    u cannot get file in presentation server.. in background..
    if you are scheduling any background jobs it should be out of any gui interface.. like gui_dowload , gui_upload// ur need to replace then with cl_gui_fronend_services Class
    or u have a option of writing file to application server in background using open dataset syntax.

  • SM36 job --- next  job should start after the completion of before job

    Hi All,
    I have a job which is running hourly . My requirement next  job should start after the completion of before job .
    forexample :
    It will run evenry hour like ,---  8 am,9 am,10 ,11 etc..
    My requirement
    9am job should  start after completion of 8 am job ...  Can you please let me know ... How can i achieve this thru SM36.
    Thanks,
    Tashvi

    Hi Tashvi,
    Start Criteria :
    From the initial define background job screen, click on the u2018Start dateu2019 pushbutton to indicate the start criteria for the background job. The options available for scheduling jobs are:
    Immediate - allows you to start a job immediately.
    Date/Time - allows you to start a job at a specific date/time.
    After Job - allows you to start a job provided that another job has completed.
    After Event - allows you to specify the event when you want your job to run.
    At Operation Mode - allows you to start a job when the system switches to a particular operation mode.
    Scheduling Job after another Job :
    The u2018After Jobu2019 pushbutton allows you to start a job provided that another job has been completed. With this option, you must specify the name of the job that must be completed for the current job to run. If the u201CStart status-dependentu201D option is checked, the current job will only run if the specified job ends successfully. This option is useful in cases where the current job depends on the outcome of the specified job.
    Hope this Helps.
    Regards,
    Chandravadan

  • Starting Virtual Machine will not start from hibernate mode.

    Hi.  I had a BSOD and upon rebooting my machine one of my virtual machines is stuck in "hibernate" mode and will not boot up.  
    I attempted to restore to previous versions of the vmc, but that did not work.
    The error i receive is.
    "Could not enable integration functions" 
    Retry or Continue.  
    Selecting "Continue" states "the operation failed.  The virtual machine is not running"
    Does anyone have any idea how to get a VPC up and running from this situation?
    Thanks, Tim

    Hi Dear Bob Comer,
    My Laptop Windows 7 Suddenly "Shutdown". When I start it, it goes in recovery, after more than 5 hours I will Forcefully restart from Button, and start Windows 7.
    Problem-1: Butt all environments OK butt very slow on any action, click on my computer or opening of any application very slow.
    Problem 2: When I Click on Windows Virtual PC after long time I have same problem like "Could not enable integration
    functions", Message displayed "Retry" or "Continue" after clicking "Continue" Message Displayed
    "Could not enable integration functions".  I have Data in MS Virtual PC Drive "C" and "D".
    I read your Solution: I'm trying following steps:-
    1- Going to Setting of Windows Virtual PC and Unchecked "enable integration features at start up"  and Close Status
    "Shut down" from "hibernate"  Then
    Press OK.
    2- Remove the file (.vsv) from is
    in "C:\Users\[userid]\AppData\Local\Microsoft\Windows Virtual PC".
    3- Restart the Laptop and which is very slow, Butt When on Click to OPEN Windows Virtual PC Which is also very slow Black Screen coming with Windows XP Starting Logo. After long time Message Displayed "A disk read error occurred" Press Ctrl+Alt+Del to restart.
    Start up Logo of Windows XP "Press Normally"  again after 28sec in loop.
    Dear What I can Do for: 1- retreating Data from Windows Virtual PC Drives "C" and "D" ????
    2- How can my Virtual Machine Working OK and Fine ? Open 
    Please Solve my Problem with Thanks
    Best Regards and Wishes
    Khamkha

  • Updating Start, Finish % Complete from excel file to Ms Project

    Hi - This is my first post on this forum which i see is a great way to share knowledge.
    I’m having a schedule which has around 3000 lines with resources names and a Responsible Person (  where individual resources
    report to) updated on the schedule.
    I need to work out a good way to get schedule updates from different parties in a efficient way.
    My thoughts are to make a solution to generate the tasks which needs to be updated based on the status date and generate a individual excel files for each responsible person and get
    their updates back in excel and update the dates and % complete back to the MS Project schedule.<o:p></o:p>
    The steps
    a) create a filter to list all the tasks which need to be updated based status date ( tasks which are in progress, tasks in the past which have not started yet,
    tasks in the past which have finished etc) grouped as per responsible person and create separate excel files for each responsible person.
    b) the excel file will contain ( UID, Task name, start date, finish date, %complete, resource name, responsible person)
    c) I would like to email these excel files to each responsible person and get their updates for (start date, finish date, %complete)
    d) Create a VBA macro to let the user to select the updated excel file and update the data back to MS Project file.
    Conditions while updating
    a)  
    Read the Excel file from Top to bottom and find the correct record based on the UID and update the "duration" in order to change dates as below
    b)  
    IF Task has started ( the excel file contains % complete and a new start date later than the MS Project start date)
    Update MS Project file ( Actual Start date and % Complete)
    c)  
    IF Task has started as Scheduled ( the excel file contain % complete and the excel file start date is equal to MS Project start date)
            Update MS Project file ( Actual Start date and % Complete)
    d)  
    IF Task has started and finished as Scheduled ( The excel file start and finish dates are equal to MS Project file but excel file % complete is now 100%)
    Update MS Project File ( Actual Start, Actual Finish and Update % Complete 100%)
    e)  
    If Start date of the task has been rescheduled to a future date ( If Excel file start date is > that Ms project start date and excel file % complete is 0)
    Update the MS Project file and inset a lag to match the excel file start date.
    I would like to know whether this would be a feasible solutions and if some of you have implemented this kind of thing please share some code snippets.
    Thanks a lot

    Hi John, I've managed to progress further on the code and Split the records as per supervisor and create excel file and email  to supervisor.
    However I ran into 2 problems
    1) The code  works some time without any error and some times it stalls. I have managed to narrow it down to the sorting code block on the
    ExportTaskstobeUpdated mehod where it Selects the Active work book which has all the data based on the filter and Sorts according to Supervisor Name+ Resource Name
    I have made the error code Bold and Italic
    The error I'm getting is
    Run-time error '1004'
    Method'Range' of object'_Global' failed
    2) Currently I'm creating the Master Excel file which is generated by the
    ExportTaskstobeUpdated method and splitting them and creating all the splits + the Master  excel file to a hard coded locationwhich is C:GESProjectEmail folder
    When Saving it Prompts to Over wright the existing files , I don't need any prompts coming out for the user.
    I've tried using the Application.DisplayAlearts=False but it does not work for me.
    In order to overcome this , I created a routine to delete the files after the files have been emailed/Saved as draft but that too fails to delete the original Master excel file.
    Is there a way to generate the excel files on the fly and without saving can I attach it to the email ?
    Or would like to know your thoughts on a better way to handle this.
    Sub ExportTaskstoBeUpdated()
    'Start Excel and create a new workbook
    'Create column titles
    'Export data and the project title
    'Tidy up
    Dim xlApp As Excel.Application
    Dim xlRange As Excel.Range
    Dim Dept As Task
    Dim Check As String
    Dim Prime As String
    Dim PrimeEmail As String
    Dim OpeningParen, ClosingParen As Integer
    'Start Excel and create a new workbook
    Set xlApp = CreateObject("Excel.Application")
    xlApp.Visible = True
    xlApp.Workbooks.Add
    'Create column titles
    Set xlRange = xlApp.Range("A1")
    With xlRange
    '.Formula = "Master Schedule Report"
    .Font.Bold = True
    .Font.Size = 12
    .Select
    End With
    xlRange.Range("A1") = "Supervisor"
    xlRange.Range("B1") = "Resource Name"
    xlRange.Range("C1") = "UID"
    xlRange.Range("D1") = "Task Name"
    xlRange.Range("E1") = "Start Date"
    xlRange.Range("F1") = "Finish Date"
    xlRange.Range("G1") = "% Completed"
    xlRange.Range("H1") = "Project"
    xlRange.Range("I1") = "Supervisor Email"
    With xlRange.Range("A1:N1")
    .Font.Bold = True
    .HorizontalAlignment = xlHAlignCenter
    .VerticalAlignment = xlVAlignCenter
    .EntireColumn.AutoFit
    .Select
    End With
    'Export data and the project title
    Set xlRange = xlRange.Range("A2") 'Set cursor to the right spot in the worksheet
    ViewApply Name:="Task Sheet" 'Get the view that has the Text11 column to filter on
    OutlineShowAllTasks 'Any hidden tasks won't be selected, so be sure all tasks are showing
    FilterApply Name:=" Telstra - CHECK 5 - Unstatused Tasks" 'This custom filter selects "External"
    SelectTaskColumn ("Text2") 'Insures the For Each loop gets all of the filtered tasks, this may be redundant
    For Each Dept In ActiveSelection.Tasks 'Pulls data for each task into spreadsheet
    If Dept.Text4 <> "" Then ' If there is no Supervisor defined ignore the Task
    With xlRange
    .Range("A1") = Dept.Text4 ' Supervisor Name, which has a Lookup , where the description on the lookup is the Supervisor Email
    .Range("B1") = Dept.ResourceNames
    .Range("C1") = Dept.Text1
    .Range("D1") = Dept.Name
    .Range("E1") = Format(Dept.Start, "dd-mmm-yyyy")
    .Range("F1") = Format(Dept.Finish, "dd-mmm-yyyy")
    .Range("G1") = Dept.PercentComplete
    .Range("H1") = ActiveProject.Name
    'This below Code Developed by John Finds the lookup description value for a custom field value
    If Dept.Text4 <> "" Then 'This is not required now since its captured above
    Dim Found As Boolean
    Dim i As Integer, NumSup As Integer
    NumSup = ActiveProject.Resources.Count
    'Once you have that set up, now you can add this code to your macro to determine the value for the "I1" range.
    On Error Resume Next
    'cycle through each item in the value list to find the one selected for this task
    For i = 1 To NumSup
    'once the item is found exit the loop
    If CustomFieldValueListGetItem(pjCustomTaskText4, pjValueListValue, i) = _
    Dept.Text4 Then
    'the loop can exit for two reasons, one, the item has been found, two,
    ' the item was not found and an error occurred. We need to distinguish between the two
    If Err = 0 Then Found = True
    Exit For
    End If
    Next
    On Error GoTo 0 'this resets the err function
    'now that the corresponding email address is found, set the Excel range value
    If Found Then
    .Range("I1") = CustomFieldValueListGetItem(pjCustomTaskText4, pjValueListDescription, i)
    Else
    .Range("I1") = "No Email Defined"
    End If
    End If
    '=====================
    End With
    Set xlRange = xlRange.Offset(1, 0) 'Point to next row
    Else
    End If
    Next Dept
    'Tidy up
    FilterApply Name:="All Tasks"
    ViewApply Name:="Task Sheet"
    With xlRange
    .Range("A1").ColumnWidth = 30
    .Range("D1").ColumnWidth = 50
    .Range("E1").ColumnWidth = 20
    .Range("F1").ColumnWidth = 20
    .Range("G1").ColumnWidth = 20
    .Range("H1").ColumnWidth = 30
    End With
    'Sort the Active work book for Supervisor Name + Resource Name
    Range("A1:I1").Select
    ActiveWorkbook.Worksheets("Sheet1").Sort.SortFields.Add Key:=Range("A2:A500") _
    , SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
    ActiveWorkbook.Worksheets("Sheet1").Sort.SortFields.Add Key:=Range("B2:B500") _
    , SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:=xlSortNormal
    With ActiveWorkbook.Worksheets("Sheet1").Sort
    .SetRange Range("A1:I500")
    .Header = xlYes
    .MatchCase = False
    .Orientation = xlTopToBottom
    .SortMethod = xlPinYin
    .Apply
    End With
    Set xlApp = Nothing
    'Call Method to Split to seperate files and Email
    SplitIntoSeparateFiles
    'Call the Method to delete the excel files genearated by the above method
    Deletefiles
    End Sub
    Sub SplitIntoSeparateFiles()
    '* This method Split the Master excel file which is sorted by Supervisor Name + Resource Name
    Dim OutBook, MyWorkbook As Workbook
    Dim DataSheet As Worksheet, OutSheet As Worksheet
    Dim FilterRange As Range
    Dim UniqueNames As New Collection
    Dim LastRow As Long, LastCol As Long, _
    NameCol As Long, Index As Long
    Dim OutName, MasterOutName, SupervisorEmail As String
    'set references and variables up-front for ease-of-use
    'the current workbook is the one with the primary data, more workbooks will be created later
    Set MyWorkbook = ActiveWorkbook
    Set DataSheet = ActiveSheet
    NameCol = 1 ' This is supervisor Name which will be splitted
    LastRow = DataSheet.Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
    LastCol = DataSheet.Cells.Find("*", SearchOrder:=xlByColumns, SearchDirection:=xlPrevious).Column
    Set FilterRange = Range(DataSheet.Cells(1, NameCol), DataSheet.Cells(LastRow, LastCol))
    'loop through the name column and store unique names in a collection
    For Index = 2 To LastRow
    On Error Resume Next
    UniqueNames.Add Item:=DataSheet.Cells(Index, NameCol), Key:=DataSheet.Cells(Index, NameCol)
    On Error GoTo 0
    Next Index
    'iterate through the unique names collection, writing
    'to new workbooks and saving as the group name .xls
    Application.DisplayAlerts = False
    For Index = 1 To UniqueNames.Count
    Set OutBook = Workbooks.Add
    Set OutSheet = OutBook.Sheets(1)
    With FilterRange
    .AutoFilter Field:=NameCol, Criteria1:=UniqueNames(Index)
    .SpecialCells(xlCellTypeVisible).Copy OutSheet.Range("A1")
    End With
    OutName = "C:\GESProjectEmail" + "\" 'Path to Save the generated file
    SupervisorEmail = OutSheet.Range("I2") 'Supervisor Email
    MasterOutName = OutName & "Test" ' This is the First excel file generated by the ExportTasksto Be Updated Method
    OutName = OutName & UniqueNames(Index) & Trim(I2)
    Application.DisplayAlerts = False
    OutBook.SaveAs FileName:=OutName, FileFormat:=xlExcel8 'Create Excel files for each splitted files and save
    'Call Send Email method
    Send_Email_Current_Workbook (SupervisorEmail)
    OutBook.Close SaveChanges:=False
    Call ClearAllFilters(DataSheet)
    Next Index
    Application.DisplayAlerts = False
    ActiveWorkbook.SaveAs FileName:=MasterOutName, FileFormat:=xlExcel8
    ActiveWorkbook.Close SaveChanges:=False
    Application.DisplayAlerts = True
    End Sub
    Sub Send_Email_Current_Workbook(Email As String)
    Dim OutApp As Object
    Dim OutMail As Object
    Dim rng As Range
    Set OutApp = CreateObject("Outlook.Application")
    OutApp.Session.Logon
    Set OutMail = OutApp.CreateItem(0)
    On Error Resume Next
    With OutMail
    .To = Email
    .CC = ""
    .BCC = ""
    .Subject = "Project Status Update"
    .Body = "Please Update the attached file and email it back to the PM"
    .Attachments.Add ActiveWorkbook.FullName
    .Save
    End With
    On Error GoTo 0
    Set OutMail = Nothing
    Set OutApp = Nothing
    End Sub
    'safely clear all the filters on data sheet
    Sub ClearAllFilters(TargetSheet As Worksheet)
    With TargetSheet
    TargetSheet.AutoFilterMode = False
    If .FilterMode Then
    .ShowAllData
    End If
    End With
    End Sub
    Sub Deletefiles()
    ' This method is to delete the excel files once its saved and to avoid the DO you want to overigt message
    ' because Application.DisplayAlerts = False command still prompts the user to save
    On Error Resume Next
    Kill "C:\GESProjectEmail\*.xl*"
    On Error GoTo 0
    End Sub

  • How to kill export operation from AAS console?

    Hi,
    There is a data export running from AAS console. It was by mistake selected to take all data. We then tried to 1. cancel it 2. kill the session from console. 3.logoff the session. The status is now terminating and the total request time is almost 13 hours. How do I end it.
    We are running 9203 planning&Essbase

    If the export has gone beyond a certain stage, i think killing the session from AAS has no effect on it.
    We had a similar issue similar time back and i had to become desperate enough to stop it after the export had crossed > 30 GB.Being desperate, i did try the MAXL option with alter system kill request. In the end we really had to kill the esssvr process from the server. Having done this, we had stopped and started our apps and they were atleast back online.
    This is probably the worst option but if you do become desperate to stop it, i guess this is an option.

  • Openbox Theme from GTK theme [beta]

    Something like this surely exists, here is my version..
    Creates an Openbox Theme from your chosen GTK Theme ... ..in 1), 2), 3)...
    1) you need to launch your theme changing from a script like this (instead of calling your GTK switcher directly)
    #!/bin/bash
    # call your gtk theme switcher and as it quits create a matching openbox theme
    # command for gtk theme switcher
    lxappearance
    # path to auto openbox theme generator script
    ~/bin/auto-openbox-theme
    # launch obconf (so you can select the newly made theme)
    obconf
    exit
    2) For that to work you also need this next script in ~/bin/auto-openbox-theme and made executable
    #!/bin/bash
    # Looks for the current GTK theme and automatically creates a matching Openbox theme
    # The script fails on themes not following the Clearlooks convention..
    # ..future improvements will account for this - for now the script politely fails on such themes.
    # function used to see if script is generating empty results from GTK it can't handle yet
    function emptycheck {
    if [ -s $myfile ]
    then
    echo "$myfile has data."
    else
    echo "$myfile is empty."
    xmessage "Sorry this gtk is not handled yet. You should not select the generated Openbox Theme this time."
    exit
    fi
    # main script #
    # copy ~/.gtkrc-2.0 to a new file and remove all data except theme name line (!d = don't delete)
    sed /gtk-theme-name/!d ~/.gtkrc-2.0 > ~/.gtk-match-openbox-info
    # remove string before gtk theme name and return info to this file (-i)
    sed -i s/gtk-theme-name=// ~/.gtk-match-openbox-info
    # strip off all (/g) speach marks (\") and return info to this file (-i)
    sed -i s/\"//g ~/.gtk-match-openbox-info
    # place the theme name in a variable
    mygtktheme=$(cat ~/.gtk-match-openbox-info)
    # copy file called mygtktheme to a new file
    sed /gtk_color_scheme/!d ~/.themes/"$mygtktheme"/gtk-2.0/gtkrc > ~/.gtk-match-openbox-info
    # strip the line down to just colours
    sed -i s/gtk_color_scheme\ =\ \"// ~/.gtk-match-openbox-info
    sed -i s/gtk-color-scheme\ =\ \"// ~/.gtk-match-openbox-info
    sed -i s/fg_color\:#// ~/.gtk-match-openbox-info
    sed -i s/bg_color\:#// ~/.gtk-match-openbox-info
    sed -i s/base_color\:#// ~/.gtk-match-openbox-info
    sed -i s/text_color\:#// ~/.gtk-match-openbox-info
    sed -i s/selected_bg_color\:#// ~/.gtk-match-openbox-info
    sed -i s/selected_fg_color\:#// ~/.gtk-match-openbox-info
    sed -i s/tooltip_bg_color\:#// ~/.gtk-match-openbox-info
    sed -i s/tooltip_fg_color\:#// ~/.gtk-match-openbox-info
    sed -i s/\"//g ~/.gtk-match-openbox-info
    # force \n to be a true line break so colours on individual lines
    sed -i s/\n/\\n/g ~/.gtk-match-openbox-info
    sed -i 's/\\//g' ~/.gtk-match-openbox-info
    # store some colours for use in Openbox theme
    # don't delete (!d) line number n and place it in a text file colournX
    # where X is used later to aid production of Openbox theme
    sed '1!d' ~/.gtk-match-openbox-info > /tmp/colour1V
    sed '2!d' ~/.gtk-match-openbox-info > /tmp/colour2W
    sed '3!d' ~/.gtk-match-openbox-info > /tmp/colour3X
    sed '4!d' ~/.gtk-match-openbox-info > /tmp/colour4Y
    sed '5!d' ~/.gtk-match-openbox-info > /tmp/colour5Z
    # check if we have empty data from unhandled GTK themes
    myfile="/tmp/colour1V"
    emptycheck
    myfile="/tmp/colour2W"
    emptycheck
    myfile="/tmp/colour3X"
    emptycheck
    myfile="/tmp/colour4Y"
    emptycheck
    myfile="/tmp/colour5Z"
    emptycheck
    # hold the above in varibles
    myV=$(cat /tmp/colour1V)
    myW=$(cat /tmp/colour2W)
    myX=$(cat /tmp/colour3X)
    myY=$(cat /tmp/colour4Y)
    myZ=$(cat /tmp/colour5Z)
    # make Openbox theme by replacing VWXYZ in template with colours
    sed s/VVVVVV/$myV/g ~/.themes/obthemetemplate/openbox-3/TEMPLATE > /tmp/obtheme
    sed -i s/WWWWWW/$myW/g /tmp/obtheme
    sed -i s/XXXXXX/$myX/g /tmp/obtheme
    sed -i s/YYYYYY/$myY/g /tmp/obtheme
    sed s/ZZZZZZ/$myZ/g /tmp/obtheme > ~/.themes/obthemetemplate/openbox-3/themerc
    # update rc.xml
    #urxvt -e /usr/bin/obconf
    3) AND you need this folder in your ~/.themes/ folder - download it, extract and copy to ~/.themes
    4) (optional but welcome) Post your fails, post your abusive and constructive criticism, and post your "hey why don't you use this 5million times better version here?"'s
    thanks, bye

    Works fine here. Thanks for the script, it's quite handy and I got at last a nice OB theme witch fits with the murrina chrome gtk theme

  • When have multiple layers, move images and text all starting from background layer

    Greetings
    I have an image that has some 24 layers, many of these are text.  When trying to move the images and text all on the same layer yesterday, I ran into problems, but eventually fixed by moving these items starting from the background layer, by using Ctrl\Move. 
    This worked so well that I thought I would show my fellow learners at our regular Friday session on Elements 11 at SeniorNet.  However when I went to show them I could move easily and freely on the background layer - without using Ctrl, just the move tool.  Elements simply moved very quickly from the background layer to the relevent layer with the image or text (as before ?).
    Cannot understand why I could not do that in the first place at home, but I had lots of tries there.  What circumstances could have been different ?

    Did you have "Auto Select Layers" ticked on the tool's option bar?
    It is not clear to me what the ultimate goal of your demonstration is. You can combine  the 24 layers into one layer (referred to as stamp visible layer) without flattening the layer structure. To do this, do the following:
    Open a blank layer at the top of the stack of layers in the layers palette
    Press CTRL+ALT+SHIFT+E on the keyboard
    You can work on this stamp visible layer. The layers below will not be impacted. If you don't like what you have done, simply delete the stamp visible layer, then start over.

  • UWL: The request cannot be started from the Business Workplace?

    Hi All
    Please assist I am currently trying to execute the standard leave request approval within the UWL. 
    This is the standard leave approval screen for workflow template WS12300111.
    I get the below error in a SAP ECC easy web screen.
    The request cannot be started from the Business Workplace
    Message no. HRTIM_ABS_REQ066
    Can anyone give me any insight to this as I have made multiple  changes tothe UWL config.
    Regards
    Maahir

    BY seeing the error message I think you might have not registered the task in the Portal, as you are have mentioned easy web screen
    1. When ever you are trying to execute the workitem from the UWL and you are able to See the SBWP SAP inbox in the browser then it means that the task of the workflow is not registered in the portal.
    2. Please ask your portal team to register the task in UWL with corresponding visualization parameters.
    [check for the parameters that are to be configured|http://help.sap.com/saphelp_nw04/helpdata/en/20/f0c82c9f6748c58d9ea14b3bbed93a/frameset.htm]
    You cannot execute a leave workitem from the Inbox. if you try to execute then it prompts the error message that you have mentioned.
    Try to do check all the below points.
    1. Check whether the task TS12300097 is registered in the SWFVISU txn  it should be using a Java Application. with the parameters
    APPLICATION     LeaveRequestApprover
    DYNPARAM     wi_id=${item.externalId}
    PACKAGE     sap.com/ess~lea
    2. Second thing is make the task as  General Task from the PFTC txn. so that the agent can approve
    3. Ask the portal guys to register this task in the XML file where all the application specific task's are registred. and then try to execute the workitem, this time it will show you the leave request application.

  • 'start from' of bullets & lists in Korean version

    I'm Korean user and of course I usually type text in Korean with pages.
    What the matter is that when I type something in Korean, 'continue from previous' and 'start from' are automatically changed into each other, especially 'start from' into 'continue from previous'
    For example, when I type like this;
    I. Pages
    1. is
    (1) nice
    (2) tool
    (3) to type in English
    then, it happens like it;
    2. but
    (4) how
    (5) the ****
    (6) can I
    (7) solve it?
    And then the real matter is that If I delete everything after '2. but,' start with new number (1), and then type something in Korean, 'start from' would be automatically changed into 'continue from previous' like it;
    2. but
    (1) -> (4) 헐(means oops), (4) ㄱ, (4) ㅐ ...etc.
    So if I want to type something in Korean in this situation, I have to do like this;
    2.but
    (4) 헐 (type something enough to change)-> then click 'start from' -> (1) 헐 (changed) -> then (1) 헐, 짜증나네.(means 'oops, annoying me' that all I want to type at first)
    Is there any ways to solve this little but annoying problem?

    Looks like your region in tab1 is not refreshing.
    have an input parameter to the region/TF embedded in tab1 , set refreshIfNeeded ="true" and toggle the parameter value in the disclosureListener of the tab.
    http://www.adftips.com/2010/11/adf-ui-region-interaction-interaction.html

  • FireFox is the best internet navigator so far, but starting from this date of July 16th 2011, I'm going back to IE and stop using FF as long as I'm still getting 20 to 25 plugin containers in my Windows Task Manager. Goodbye FF.

    I have been using FF for the last 8 years. Starting from today of July the 16th 2011, I'm going back to IE and say goodbye to FF as long as I'm still getting 20 to 25 plugin containers in my Windows task manager.

    I have the "techie" answer for all of you. According to the tier 2 support at Norton Help Desk, the latest live update from Norton "utilizes Visual Studio 2012 which enables SSE2 instructions" and my processor can not handle that.
    He said they are "working on a solution" and offered to reply back on Wednesday / Thursday this week if a solution could be found...

Maybe you are looking for

  • Everything that has to do with burning a CD/DVD unexpectedly quits!!!!

    When I am in 10.4.5 (or when I had 10.4.4) I cannot burn with Toast, iTunes, iDVD, etc. However, I have an Ext. HD with 10.4.2 and don't have any problem burning CDs/DVDs at all. I recently upgraded my CDR/DVD-ROM with a Superdrive from OWC (MATSHITA

  • IMac and Time Machine

    Hello all, I have a Imac ( intel ) and have connected an external usb hard drive and enabled time machine backup. I have a lot of photos saved in Iphoto. Will the time machine application back up / save all of my photos as part of the process or will

  • Annoying shut down when playing music

    Can anyone help please. My mac is 6 months old has the latest OS. When I leave it playing music either in Itunes or on u tube. It shuts down to login after 15 minutes. If I am using it it does not. I have disabled all energy saving options and all "n

  • Appraisal and HRP Tables.

    I am a tech guy working on Appraisal, I am able to create appraisal in the system and the same is also displayed in PA30 infotype. I am using BAPI_APPRAISAL_MODEL_GETLIST - To get all the Appraisal Catalog in the System and Read appraisal: BAPI_APPRA

  • Captivate 8 Failure Captions Glossary Widget

    I've run into some apparent conflicts between the Glossary Widget and click box and button failure captions in Captivate 8. The course uses the Captivate Glossary widget, which is placed on Screen 1 and set to "not visible", unless the user reveals i