Login script doesn't work

Hi,
I use the login user server behavior which is build in
coldfusion 7 as my loginscript. Somehow it doesn't work. If I fill
in the username and password in the form the user is redirected to
the login fail page instead of the login success page.
I don't understand it because it's possible to do a query
into the database with the username and password...
This is the script I use:
<cfif IsDefined("FORM.lognaam")>
<cfset MM_redirectLoginSuccess="hm_beheer.cfm">
<cfset MM_redirectLoginFailed="login.cfm?error=1265">
<cfquery name="MM_rsUser" datasource="" username="">
SELECT usr_login,usr_ww FROM usr WHERE
usr_login='#FORM.lognaam#' AND usr_ww='#FORM.ww#'
</cfquery>
<cfif MM_rsUser.RecordCount NEQ 0>
<cftry>
<cflock scope="Session" timeout="30" type="Exclusive">
<cfset Session.MM_Username=FORM.lognaam>
<cfset Session.MM_UserAuthorization="">
</cflock>
<cfif IsDefined("URL.accessdenied") AND false>
<cfset MM_redirectLoginSuccess=URL.accessdenied>
</cfif>
<cflocation url="#MM_redirectLoginSuccess#"
addtoken="no">
<cfcatch type="Lock"><!--- code for handling
timeout of cflock --->
</cfcatch>
</cftry>
</cfif>
<cflocation url="#MM_redirectLoginFailed#"
addtoken="no">
<cfelse>
<cfset MM_LoginAction=CGI.SCRIPT_NAME>
<cfif CGI.QUERY_STRING NEQ "">
<cfset MM_LoginAction=MM_LoginAction & "?" &
XMLFormat(CGI.QUERY_STRING)>
</cfif>
</cfif>
Hopefully somebody can help me with this..
Regards,
Kabbi

Hi, thank you very much.
However I still keep getting this error now:
Variable MM_LOGINACTION is undefined.
The error occurred in C:\xampp\htdocs\bar\beheer\login.cfm:
line 187
185 : <tr>
186 : <td width="101" height="296"
valign="top"><!--DWLayoutEmptyCell--> </td>
187 : <td width="503" valign="top"><form
name="login" id="login" method="POST"
action="<cfoutput>#MM_loginAction#</cfoutput>">
188 : <table width="503" border="0" cellpadding="0"
cellspacing="0" class="blank" align="center">
189 : <!--DWLayoutTable-->
Do you perhaps also have an idea what wen wrong here?
Regards,
Kabbi

Similar Messages

  • ARD Login script doesn't work with similar usernames

    We have a lab of Macs all of which have two accounts whose usernames start with the same characters (rms and rmsadmin). There are times when we would like to be able to log on to all the computers simultaneously as the rmsadmin user with ARD. Because both of the usernames start with the same three characters, when the following commands are sent via ARD, the login process defaults to selecting the student account (rms) and won't log in as rmsadmin:
    osascript -e 'tell application "System Events" to keystroke "rmsadmin"'; \
    osascript -e 'tell application "System Events" to keystroke return'; \
    osascript -e 'tell application "System Events" to delay 0.5'; \
    osascript -e 'tell application "System Events" to keystroke "password"'; \
    osascript -e 'tell application "System Events" to delay 0.5'; \
    osascript -e 'tell application "System Events" to keystroke return'
    Anyone have a solution to this?
    Thanks in advance for taking the time to read this and giving it some thought.
    Peggy
    Xserve PowerPC G4, MacBook Pro, PowerBook, etc.   Mac OS X (10.4.8)  

    Since we do have the same problem but also some additional infos I bump this thread in the hopes of getting some answers.
    The login script does run, but unfortunatly only when I start it manually. It does not run during login.
    The only purpose of the script is to map some drives and it works fine under XP. Where else can I find infos about the problem?
    Our script looks like that:
    On Error resume next  
    Set objADSystemInfo = CreateObject("ADSystemInfo")  
    Set objUser = GetObject("LDAP://" & objADSystemInfo.UserName)  
    strDn = objUser.Get("distinguishedName")  
    strSam = objUser.Get("sAMAccountName")  
    strCn = objUser.Get("cn")
    Set colGroups = objUser.Groups  
    Pos = Instr(strDn,"OU=")  
    if Pos = 0 then  
        strOu = "" 
    else  
        strOu = Mid(strDn,Pos+3,2)  
    end if  
    Set objNetwork = CreateObject("WScript.Network")   
    objNetwork.MapNetworkDrive "h:", "\\frodo\user\" & strSam  
    objNetwork.MapNetworkDrive "j:", "\\frodo\misc" 
    objNetwork.MapNetworkDrive "l:", "\\frodo\department" 
    objNetwork.MapNetworkDrive "q:", "\\frodo\projects" 
    objNetwork.MapNetworkDrive "k:", "\\frodo\department\" & strOu  
    if strOu = "IT" then  
        objNetwork.MapNetworkDrive "x:", "\\frodo\software" 
    end if  
    'WScript.Echo strOut  
    For Each objGroup in colGroups  
        if objGroup.CN = "DreCash" then  
        objNetwork.MapNetworkDrive "p:", "\\gollum\drehcash" 
        end if  
    Next 
    objNetwork.MapNetworkDrive "i:", "\\192.168.1.6\shares" 

  • Buckup SQL Script doesn't work

    Hi  all,
    In ECC i want schedule ASE jobs to  dump transaction logs,i do it fellow the note 1588316 step by step .  In  schedule jobs my sql script doesn't work,but it works in sql command line.
    sql script :
    dump transaction DEV using config= 'DEVLOG'
    Anybody can give me some advise to face this issue?  Thanks in advance.
    David Lv

    Hi  all,
    My problem sloved, it's JSagent problem.
    sp_dumptrans not working at dbacockpit @Alcino Melo
    use sybmgmtdb
    go
    sp_js_wakeup "start_js",1
    go
    after start  JSagent  my sql script can run 
    Thanks  all
    David Lv

  • Mount volume script doesn't work after upgrading to Yoesmite

    I just upgrade my Mac OS to Yosemite and the boot up mount script doesn't work again.
    try
    mount volume "afp://admin:[email protected]/Multimedia/Music"
    mount volume "afp://admin:[email protected]/workspace"
    end try
    Should I modify the mount script and how to do that?
    Thank you so much.
    Matthew Ho

    I am having the exact same problem. I just did a complete re-install of max os x and did all of the updates..my hard drive had crashed so i had to replace it. lot's of fun.. and after the last upgrade i can't use my sound at all.. the sound shows that it's all the way up but it has the "no Smoking" sign as well..
    i have tried to restart.. change options and whatever else i could .. i did notice that when i enable the option to show the sound icon on the main bar that there is just a blank spot where it should be.. and i can't change it form there either because it just doesn't show..
    any one seen this before.. ?
    all my other Mac's work fine..
    please help..

  • Use BridgeTalk,but my script doesn't work

    Hi,
    I want to use BridgeTalk to open a image in photoshop,but my script doesn't work.
    Anyone can tell me why?Thanks!
    Best Regards
    goldbridge
    #target indesign
    #targetengine "MyEngine"
    var doc=app.activeDocument;
    if(doc.selection.length>0)
                        if(doc.selection[0].constructor.name=="Image")
                               jpgpath=new File(app.selection[0].itemLink.filePath);
                               bt = new BridgeTalk;
                               bt.target = "photoshop";
                               bt.type = "iterator";
                               bt.body="{app.open(jpgpath);}";
                               bt.onResult = function(resObj) {};
                               bt.send();
                               BridgeTalk.bringToFront("photoshop");

    In your body script… jpgpath is just part of a string you have not constructed this to pass the variable… Also some classes are considered complex types so you need to toSource() and then eval…
    #target indesign
    #targetengine "MyEngine"
    var doc=app.activeDocument;
    if(doc.selection.length>0)
                        if(doc.selection[0].constructor.name=="Image")
                               jpgpath=new File(app.selection[0].itemLink.filePath).toSource();
                               bt = new BridgeTalk;
                               bt.target = "photoshop";
                               bt.type = "iterator";
                               bt.body = "{app.open( eval (" + jpgpath + ") );}";
                               //$.write( bt.body  );
                               bt.onResult = function(resObj) {};
                               bt.send();
                               BridgeTalk.bringToFront("photoshop");

  • Steam login launcher doesn't work

    When I click on steam, the first time login screen appears (Where it says create an account, first time ps3 login, and login to existing account) but I can't click on anything, I have to kill it. I reinstalled steam and now it doesn't even start. If I try to run steam from the terminal all I get is this:
    Running Steam on arch 64-bit
    STEAM_RUNTIME is enabled automatically
    I'm using the catalyst-test drivers. Any help is appreciated. Thank you.
    Last edited by lazarojhr16 (2015-02-06 00:32:10)

    Well I found the problem, it has to do with my system being in spanish. When I switch to english it works perfectly. When I switch back to spanish it doesn't work but at least now I'm getting this at the terminal:
    Running Steam on arch 64-bit
    STEAM_RUNTIME is enabled automatically
    Installing breakpad exception handler for appid(steam)/version(1422054110)
    Installing breakpad exception handler for appid(steam)/version(1422054110)
    (steam:25977): Gtk-WARNING **: Imposible encontrar el motor de temas en la ruta al _modulo: «adwaita»,
    (steam:25977): Gtk-WARNING **: Imposible encontrar el motor de temas en la ruta al _modulo: «adwaita»,
    /usr/share/themes/Adwaita/gtk-2.0/gtkrc:1163: error: unexpected identifier `direction', expected character `}'
    (steamwebhelper:25980): Gtk-WARNING **: Imposible encontrar el motor de temas en la ruta al _modulo: «adwaita»,
    (steamwebhelper:25980): Gtk-WARNING **: Imposible encontrar el motor de temas en la ruta al _modulo: «adwaita»,
    /usr/share/themes/Adwaita/gtk-2.0/gtkrc:1163: error: unexpected identifier `direction', expected character `}'
    Installing breakpad exception handler for appid(steamwebhelper)/version(20150123134624)
    Installing breakpad exception handler for appid(steamwebhelper)/version(1422020784)
    Installing breakpad exception handler for appid(steamwebhelper)/version(20150123134624)
    Installing breakpad exception handler for appid(steamwebhelper)/version(1422020784)
    Installing breakpad exception handler for appid(steamwebhelper)/version(1422020784)
    Installing breakpad exception handler for appid(steam)/version(1422054110)
    Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
    Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
    Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
    Installing breakpad exception handler for appid(steam)/version(1422054110)
    Installing breakpad exception handler for appid(steam)/version(1422054110)
    Installing breakpad exception handler for appid(steam)/version(1422054110)
    Installing breakpad exception handler for appid(steam)/version(1422054110)
    Installing breakpad exception handler for appid(steam)/version(1422054110)
    Installing breakpad exception handler for appid(steam)/version(1422054110)
    FillInMachineIDInfo took a total of 0 milliseconds
    Installing breakpad exception handler for appid(steam)/version(1422054110)
    Installing breakpad exception handler for appid(steam)/version(1422054110)
    Generating new string page texture 7: 128x256, total string texture memory is 131,07 KB
    Generating new string page texture 8: 64x256, total string texture memory is 196,61 KB
    Generating new string page texture 9: 48x256, total string texture memory is 245,76 KB
    Generating new string page texture 10: 256x256, total string texture memory is 507,90 KB
    Generating new string page texture 11: 8x256, total string texture memory is 516,10 KB
    Generating new string page texture 12: 16x256, total string texture memory is 532,48 KB
    Generating new string page texture 13: 24x256, total string texture memory is 557,06 KB
    Generating new string page texture 14: 32x256, total string texture memory is 589,82 KB
    Installing breakpad exception handler for appid(steam)/version(1422054110)
    Installing breakpad exception handler for appid(steam)/version(1422054110)
    Installing breakpad exception handler for appid(steam)/version(1422054110)
    Installing breakpad exception handler for appid(steam)/version(1422054110)
    Installing breakpad exception handler for appid(steam)/version(1422054110)
    Steam: An X Error occurred
    X Error of failed request: BadValue (integer parameter out of range for operation)
    Major opcode of failed request: 18 (X_ChangeProperty)
    Value in failed request: 0x0
    Serial number of failed request: 557
    xerror_handler: X failed, continuing
    assert_20150205221633_1.dmp[26103]: Uploading dump (out-of-process)
    /tmp/dumps/assert_20150205221633_1.dmp
    /home/lazaro/.local/share/Steam/steam.sh: línea 736: 25977 Violación de segmento (`core' generado) $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"
    Requested Force create but SharedObjectMutex already created
    Forced create but already created for SharedObjectEvent
    Forced create but already created for SharedObjectEvent
    assert_20150205221633_1.dmp[26103]: Finished uploading minidump (out-of-process): success = yes
    assert_20150205221633_1.dmp[26103]: response: CrashID=bp-f6bc885f-39f2-4bff-9b68-266592150205
    assert_20150205221633_1.dmp[26103]: file ''/tmp/dumps/assert_20150205221633_1.dmp'', upload yes: ''CrashID=bp-f6bc885f-39f2-4bff-9b68-266592150205''
    It says segfault at line 736 of steam.sh. I went to the script and at that line all that is there is this
    STATUS=$?
    I also see
    $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"
    Requested Force create but SharedObjectMutex already created
    but I don't know what that means.
    What can I do to get steam to work under my system while it's in spanish?
    Last edited by lazarojhr16 (2015-02-06 03:34:39)

  • FullScreen script doesn't work all the time

    I am having a problem with this script. Its weird, sometimes I type in a number like 3333 and it will go to the google link like this:
    http://www.google.com/maps?saddr=3333&daddr=40.000000,80.000000
    Other times I type in the same number and it doesn't work.
    Anyone see any problems with the code?
    echo "<script language=\"Javascript\">
    <!--
    var str = \"left=0,screenX=0,top=0,screenY=0\";
    if (window.screen){
    var ah = screen.availHeight - 30;
    var aw = screen.availWidth - 10;
    str += \",height=\" + ah;
    str += \",innerHeight=\" + ah;
    str += \",width=\" + aw;
    str += \",innerWidth=\" + aw;
    } else {
    str += \",resizable\";
    function call_full() {
    var saddr=document.getElementById('saddr').value;
    var daddr=document.getElementById('daddr').value;
    fullScreen('http://maps.google.com/maps?saddr='+saddr+'&daddr='+daddr+'')
    //-->
    </script>";
    echo '<form name="addr_form" id="addr_form">
    <b>Get Directions</b>
    <br>
    <font size=2>Your address: (street, town, state)</font><br>
    <input type="text" size=40 maxlength=40 name="saddr" id="saddr" value="" />
    <input type="button" type="submit" onClick="call_full()" value="Go">
    <input type="hidden" name="daddr" value="40.00000, -80.00000"/>
    </form>';Message was edited by:
    [email protected]

    The main problem I see is that it's written in Javascript, and this is a forum about Java, not about Javascript.
    I can tell you that in Java there's a method available to URL-encode URL parameter values. For all I know there's one in Javascript too. There should be, in my opinion, but not knowing the language very well I couldn't tell you if there really is one.

  • Mail.app redirect script doesn't work

    I'm trying to script a batch process to redirect selected messages in the Mail application. I found a nifty script on macosxhints.com--only one problem: it doesn't work with 10.4's Mail.
    The script fails ("variable is undefined") when trying to get the result of:
    redirect message with opening window
    According the the Mail dictionary, redirect should return an "outgoing message". Instead it appears to be undefined, and I can't figure out how to manipulate the newly created message to change the recipient, sender, etc.
    Any ideas?
    G5   Mac OS X (10.4.5)  

    has anyone gotten this script to work with 10.4.6?
      Mac OS X (10.4.6)  

  • Script doesn't work, if GUI subscreens are collapsed

    Hello all,
    I am to code some scripts to automate some boring, but necessary steps in trainings. Unfortunately my scripts don't work ("The control cound not be found by ID"), if the GUI looks different compared to the reording phase (e.g. other tabs are selected or subscreens are collapsed).
    The problem with the tabs could be solved by clicking on the needed tab regardless whether it is already open or not.
    But I was not able to solve the problem with the collapsed subscreens. Clicking on the "Open subscreen"-button without looking at the current status doesn't help. The state just toggles and noone can say, whether its closed or open afterwards. Furthermore, according to the API-Doc, there is no possibility to check, whether a control is available or not. Is that true? If there was a method, I could make use of an if-clause to click on the "open subsreen"-button conditionally.
    Has anyone good advise for me?
    Thx a lot!
    Klaus

    I found another possible issue while looking at a similar problem. I was unable to execute a PowerShell script as a Task Scheduler action, even though the script ran correctly when logged into Windows as the target user and running within PowerShell.
    Task Scheduler would consistently display the 0xFFFD0000 error when I nominated the script in the task's action arguments using what I believed to be normal PowerShell quoting rules:
    -ExecutionPolicy Bypass -File 'D:\full path\to\script.ps1'
    PowerShell acquiesced and Task Scheduler fired off the task immediately and without issue when I changed the quotes I used from single to double:
    -ExecutionPolicy Bypass -File "D:\full path\to\script.ps1"
    Dropping to a command prompt and executing the full command immediately revealed the problem:
    D:\>C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File 'D:\full path\to\script.ps1'Processing -File ''D:\full path\to' failed: The given path's format is not supported. Specify a valid path for the -File parameter.
    Notice the strange use of two single quotes before the path and one single quote after.
    The moral of the story: When feeding the full path of a script to PowerShell as a command line parameter,
    use double quotes!

  • Script doesn't work in task scheduler

    I know it has already posted many times but I have already tried everything and still I can't get it to work.
    The script is a simple send email function and it works if executed from the command prompt:
    powershell.exe -f .\sendEmail.ps1 [email protected] "Test Subject" "Test Message"
    But in the task scheduler it doesn't work and no email is sent. The exit code of the task is 0xFFFD0000:
    Task Scheduler successfully completed task "\SendEmailTest" , instance "{15ff2070-ee25-4b2e-9ae1-274eda0d8c3a}" , action "powershell.exe" with return code 4294770688.
    The task is configured to run under the SYSTEM account with highest privilege, powershell ist configured with unrestricted execution policy, why it doesn't work?
    I have tried also with a simpler task to create a text file
    New-Item c:\scripts\new_file.txt -type file -force -value "This is text added to the file"
    But it doesn't work too, so it should be some other missing privilege somewhere but I couldn't find anything in internet.
    Thanks for any help

    I found another possible issue while looking at a similar problem. I was unable to execute a PowerShell script as a Task Scheduler action, even though the script ran correctly when logged into Windows as the target user and running within PowerShell.
    Task Scheduler would consistently display the 0xFFFD0000 error when I nominated the script in the task's action arguments using what I believed to be normal PowerShell quoting rules:
    -ExecutionPolicy Bypass -File 'D:\full path\to\script.ps1'
    PowerShell acquiesced and Task Scheduler fired off the task immediately and without issue when I changed the quotes I used from single to double:
    -ExecutionPolicy Bypass -File "D:\full path\to\script.ps1"
    Dropping to a command prompt and executing the full command immediately revealed the problem:
    D:\>C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File 'D:\full path\to\script.ps1'Processing -File ''D:\full path\to' failed: The given path's format is not supported. Specify a valid path for the -File parameter.
    Notice the strange use of two single quotes before the path and one single quote after.
    The moral of the story: When feeding the full path of a script to PowerShell as a command line parameter,
    use double quotes!

  • Download Pictures Script Doesn't Work

    Using Automator, I created the standard plugin for Downloading Pictures, as shown on Apple's site. (It's one of the examples given.) I saved it in the Safari Scripts folder. It works with Apple's examples html pages, but often doesn't download pictures at all or downloads only one .gif file from a page with multiple thumbnails. Discouraging! Is there a script that will work on almost any site? How would I write such a script?

    Thanks. The rule was there in my firewall, allowing iTunes. I deleted it and added it again and now it works. Strange thing was that before I could still go to iTunes Store.
    Anyway, the problem is solved now. Thanks a lot.
      Windows XP  

  • NetworkManager dispatcher script doesn't work

    Hey there,
    i have created a script in networkmanagers dispatcher.d directory to automount my NAS once my home wifi is connected and unmount it once the connection is lost.
    The dispatcher service is running and all permissions and the execution bit are set like it should be. But my script doesn't get called at all!
    i also tried installing this package: https://www.archlinux.org/packages/comm … cher-sshd/ and modifying its script but that also doesn't work.
    Is there some hidden settings file or something? What might be the cause for this?
    Thanks.

    Did you start/enable the NetworkManager-dispatcher service with systemctl? I'm not clear on what you mean by it's "running".
    Last edited by Scimmia (2014-03-23 19:57:10)

  • Bash script doesn't work (Also, help me condense it)...

    I am trying to make myself a bash script which combines files together based off of a config file. It is automating combining the audio book tracks I ripped of my CDs into chapters for easier reference. My first problem is that even though I used ', cat still thinks that everything is a separate file. My second problem is that it is way too long, any way I can have it automatically go up 1 chapter until a specified number (ie, until the value of the CHAPTERS variable)? Thanks to those who help.
    chapcomb.sh
    #!/bin/bash
    # * ChapterCombine *
    # * By smartboyathome *
    # * A script which was made to combine *
    # * chapters from ripped audio books *
    # * together, but can be edited to *
    # * combine just about anything. *
    # * The config file is located in your *
    # * home directory, under the name *
    # * '.chapcomb.config'. If you do not *
    # * have this file, create it. *
    # * Otherwise this script will not *
    # * run, as it won't have the proper *
    # * variables. *
    # * This can be changed by changing *
    # * the CONFIG variable below. *
    # * Licensed under: *
    # * SmartLicense version 1.0 *
    VERSION=0.1
    usage() {
    echo "Chapter Combine v$VERSION"
    echo "A configuration file must be made in order to use this script. Configuration files are located at $CONFIG. This can be changed by adding CONFIG='blah' before this command, or by changing the script directly. See the sample file for how it should look."
    while [ "$#" -ne "0" ]; do
    case $# in
    --help)
    usage
    exit 0
    -h)
    usage
    exit 0
    esac
    done
    # The config file stuff.
    if [ -z "$CONFIG" ]; then
    CONFIG="$HOME/.chapcomb.config"
    fi
    . $CONFIG
    cd "$BOOKDIR"
    combine() {
    # Checks if file exists, and if so, deletes it.
    if [ -a $NAME ]; then
    rm $NAME
    fi
    # Combines files
    cat $FILES >> $NAME
    # Checks to make sure that the chapter combined ok.
    if [ -s "$NAME" ]; then
    echo "File $NAME is ok."
    else
    echo "File $NAME had an error and didn't combine. Please fix config file and rerun this script."
    exit 0
    fi
    chapter01
    combine
    chapter02
    combine
    chapter03
    combine
    chapter04
    combine
    chapter05
    combine
    chapter06
    combine
    chapter07
    combine
    chapter08
    combine
    chapter09
    combine
    chapter10
    combine
    chapter11
    combine
    chapter12
    combine
    chapter13
    combine
    chapter14
    combine
    chapter15
    combine
    chapter16
    combine
    chapter17
    combine
    chapter18
    combine
    chapter19
    combine
    chapter20
    combine
    chapter21
    combine
    chapter22
    combine
    chapter23
    combine
    chapter24
    combine
    chapter25
    combine
    chapter26
    combine
    chapter27
    combine
    chapter28
    combine
    chapter29
    combine
    .chapcomb.config
    # Config file for ChapterCombine
    # DO NOT DELETE, OR CHAPTERCOMBINE WILL NOT FUNCTION!
    # Book's Directory
    BOOKDIR='/media/Home/aabbott/Star Wars Fate of the Jedi Outcast'
    # Each chapter's settings.
    chapter01() {
    # FILES='Outcast\ Disc\ 1/01\ Track\ 1.mp3 Outcast\ Disc\ 1/02\ Track\ 2.mp3 Outcast\ Disc\ 1/03\ Track\ 3.mp3 Outcast\ Disc\ 1/04\ Track\ 4.mp3'
    FILES="'Outcast Disc 1'/{'01 Track 1','02 Track 2','03 Track 3','04 Track 4'}.mp3"
    NAME='Chapter01.mp3'
    chapter02() {
    # FILES='Outcast\ Disc\ 1/05\ Track\ 5.mp3 Outcast\ Disc\ 1/06\ Track\ 6.mp3 Outcast\ Disc\ 1/07\ Track\ 7.mp3 Outcast\ Disc\ 1/08\ Track\ 8.mp3 Outcast\ Disc\ 1/09\ Track\ 9.mp3 Outcast\ Disc\ 1/10\ Track\ 10.mp3 Outcast\ Disc\ 1/11\ Track\ 11.mp3'
    FILES="'Outcast Disc 1'/{'05 Track 5','06 Track 6','07 Track 7','08 Track 8','09 Track 9','10 Track 10','11 Track 11'}.mp3"
    NAME='Chapter02.mp3'
    chapter03() {
    # FILES='Outcast\ Disc\ 1/12\ Track\ 12.mp3 Outcast\ Disc\ 1/13\ Track\ 13.mp3 Outcast\ Disc\ 1/14\ Track\ 14.mp3 Outcast\ Disc\ 1/15\ Track\ 15.mp3 Outcast\ Disc\ 1/16\ Track\ 16.mp3'
    FILES="'Outcast Disc 1'/{'12 Track 12','13 Track 13','14 Track 14','15 Track 15','16 Track 16'}.mp3"
    NAME='Chapter03.mp3'
    chapter04() {
    # FILES='Outcast\ Disc\ 2/01\ Track\ 1.mp3 Outcast\ Disc\ 2/02\ Track\ 2.mp3 Outcast\ Disc\ 2/03\ Track\ 3.mp3 Outcast\ Disc\ 2/04\ Track\ 4.mp3'
    FILES="'Outcast Disc 2'/{'01 Track 1','02 Track 2','03 Track 3','04 Track 4'}.mp3"
    NAME='Chapter04.mp3'
    chapter05() {
    FILES="'Outcast Disc 2'/{'05 Track 5','06 Track 6','07 Track 7','08 Track 8'}.mp3"
    NAME='Chapter05.mp3'
    chapter06() {
    FILES="'Outcast Disc 2'/{'09 Track 9','10 Track 10','11 Track 11','12 Track 12','13 Track 13'}.mp3"
    NAME='Chapter06.mp3'
    # This one needs some special parameters as the chapter is split between two Discs.
    chapter07() {
    FILES="{'Outcast Disc 2'/{'14 Track 4','15 Track 15','16 Track 16','17 Track 17'}.mp3,'Outcast Disc 3'/{'01 Track 1','02 Track 2','03 Track 3'}}.mp3"
    NAME='Chapter07.mp3'
    chapter08() {
    FILES="'Outcast Disc 3'/{'04 Track 4','05 Track 5','06 Track 6','07 Track 7','08 Track 8'}.mp3"
    NAME='Chapter08.mp3'
    chapter09() {
    FILES="'Outcast Disc 3'/{'09 Track 9','10 Track 10','11 Track 11'}.mp3"
    NAME='Chapter09.mp3'
    chapter10() {
    FILES="'Outcast Disc 3'/{'12 Track 12','13 Track 13','14 Track 14','15 Track 15'}.mp3"
    NAME='Chapter10.mp3'
    chapter11() {
    FILES="'Outcast Disc 4'/{'01 Track 1','02 Track 2','03 Track 3'}.mp3"
    NAME='Chapter11.mp3'
    chapter12() {
    FILES="'Outcast Disc 4'/{'04 Track 4','05 Track 5','06 Track 6','07 Track 7','08 Track 8'}.mp3"
    NAME='Chapter12.mp3'
    chapter13() {
    FILES="'Outcast Disc 4'/{'09 Track 9','10 Track 10','11 Track 11'}.mp3"
    NAME='Chapter13.mp3'
    chapter14() {
    FILES="'Outcast Disc 4'/{'12 Track 12','13 Track 13','14 Track 14'}.mp3"
    NAME='Chapter14.mp3'
    chapter15() {
    FILES="{'Outcast Disc 4'/'15 Track 15','Outcast Disc 5'/{'01 Track 1','02 Track 2','03 Track 3','04 Track 4','05 Track 5'}}.mp3"
    NAME='Chapter15.mp3'
    chapter16() {
    FILES="'Outcast Disc 5'/{'06 Track 6','07 Track 7','08 Track 8','09 Track 9'}.mp3"
    NAME='Chapter16.mp3'
    chapter17() {
    FILES="'Outcast Disc 5'/{'10 Track 10','11 Track 11','12 Track 12','13 Track 13'}.mp3"
    NAME='Chapter17.mp3'
    chapter18() {
    FILES="{'Outcast Disc 5'/'15 Track 15','Outcast Disc 6'/{'01 Track 1','02 Track 2'}}.mp3"
    NAME='Chapter18.mp3'
    chapter19() {
    FILES="'Outcast Disc 6'/{'03 Track 3','04 Track 4','05 Track 5','06 Track 6','07 Track 7','08 Track 8'}.mp3"
    NAME='Chapter19.mp3'
    chapter20() {
    FILES="'Outcast Disc 6'/{'09 Track 9','10 Track 10','11 Track 11','12 Track 12','13 Track 13','14 Track 14'}.mp3"
    NAME='Chapter20.mp3'
    chapter21() {
    FILES="'Outcast Disc 6'/{'15 Track 15','16 Track 16','17 Track 17','18 Track 18','19 Track 19'}.mp3"
    NAME='Chapter21.mp3'
    chapter22() {
    FILES="'Outcast Disc 7'/{'01 Track 1','02 Track 2','03 Track 3','04 Track 4'}.mp3"
    NAME='Chapter22.mp3'
    chapter23() {
    FILES="'Outcast Disc 7'/{'05 Track 5','06 Track 6','07 Track 7','08 Track 8'}.mp3"
    NAME='Chapter23.mp3'
    chapter24() {
    FILES="'Outcast Disc 7'/{'09 Track 9','10 Track 10','11 Track 11','12 Track 12','13 Track 13'}.mp3"
    NAME='Chapter24.mp3'
    chapter25() {
    FILES="{'Outcast Disc 7'/{'14 Track 14','15 Track 15','16 Track 16','17 Track 17'},'Outcast Disk 8'/'01 Track 1'}.mp3"
    NAME='Chapter25.mp3'
    chapter26() {
    FILES="'Outcast Disc 8'/{'02 Track 2','03 Track 3','04 Track 4','05 Track 5'}.mp3"
    NAME='Chapter26.mp3'
    chapter27() {
    FILES="'Outcast Disc 8'/{'06 Track 6','07 Track 7','08 Track 8','09 Track 9'}.mp3"
    NAME='Chapter27.mp3'
    chapter28() {
    FILES="'Outcast Disc 8'/{'10 Track 10','11 Track 11','12 Track 12','13 Track 13'}.mp3"
    NAME='Chapter28.mp3'
    chapter29() {
    FILES="'Outcast Disc 8'/{'14 Track 14','15 Track 15','16 Track 16'}.mp3"
    NAME='Chapter29.mp3'

    kumyco wrote:
    for FILES=test/{a,b,c} you may want to do something like
    FILES=$(echo test/{a,b,c})
    That's a good one. And eval would work with simple examples, but once you have spaces and such in filenames it won't work I think.
    If you are going to do this often, then there are too many things that can go wrong with a script that tries to automatically generate the filenames. Even 01* can go wrong.
    So if you do have the filenames all in the .conf, then you can replace FILES= with cat and NAME= with >
    The actual script doesn't add that much, except checking if it exists (just use > instead of >>) and if it isn't empty (not really necessary) (why did you put a license on that? is that even legal?)
    So just use the .conf file as the main script.
    Turn this:
    BOOKDIR='/media/Home/aabbott/Star Wars Fate of the Jedi Outcast'
    chapter01() {
    FILES="'Outcast Disc 1'/{'01 Track 1','02 Track 2','03 Track 3','04 Track 4'}.mp3"
    NAME='Chapter01.mp3'
    chapter02() {
    FILES="'Outcast Disc 1'/{'05 Track 5','06 Track 6','07 Track 7','08 Track 8','09 Track 9','10 Track 10','11 Track 11'}.mp3"
    NAME='Chapter02.mp3'
    into this:
    cd '/media/Home/aabbott/Star Wars Fate of the Jedi Outcast'
    cat 'Outcast Disc 1'/{'01 Track 1','02 Track 2','03 Track 3','04 Track 4'}.mp3 > 'Chapter01.mp3'
    cat 'Outcast Disc 1'/{'05 Track 5','06 Track 6','07 Track 7','08 Track 8','09 Track 9','10 Track 10','11 Track 11'}.mp3 > 'Chapter02.mp3'
    Right?
    Why would you build anything around that?
    If you are sure the filenames are all the same, you can use *
    cat *\ 1/*\ {1..4}.mp3 > Chapter01.mp3
    cat *\ 100/*\ {70..99}.mp3 > Chapter99.mp3

  • Reboot script doesn't work with BOOTCD

    Hi,
    We do Image our Workstations with the BOOTCD which works fine. At the End,
    there's a reboot command.
    All worked out, we had to do some changes in the Scripts after upgrading to
    ZEN7, but now the Reboot doesn't work anymore, the Workstation just waits
    and needs to be reset by hand - we tried reboot, shutdown, init 6 - nothing
    worked so far.
    The usual reboot script seems not to work - Anybody got an idea how to
    reset the workstation after imaging automatically?
    Thanks

    Any luck with this? We seem to have run into a similar problem. After
    finishing with an image and coming back to the bash prompt, I type
    "shutdown -h now" When doing so, I get the error "Can't execute command in
    bin/init". If I type "shutdown", it recognizes it as a command and gives
    me the switches I should use. I get this error with any of the switches.
    Thanks in advance.
    > Automatic Reply wrote:
    > > TboRElligerM,
    > >
    > > It appears that in the past few days you have not received a response
    to your posting. That concerns us, and has triggered this automated reply.
    > >
    > > Has your problem been resolved? If not, you might try one of the
    following options:
    > >
    > > - Do a search of our knowledgebase at
    http://support.novell.com/search/kb_index.jsp
    > > - Check all of the other support tools and options available at
    http://support.novell.com in both the "free product support" and "paid
    product support" drop down boxes.
    > > - You could also try posting your message again. Make sure it is posted
    in the correct newsgroup. (http://support.novell.com/forums)
    > >
    > > If this is a reply to a duplicate posting, please ignore and accept our
    apologies and rest assured we will issue a stern reprimand to our posting bot.
    > >
    > > Good luck!
    > >
    > > Your Novell Product Support Forums Team
    > > http://support.novell.com/forums/
    > >
    >
    > try reboot -f

  • Login/sso doesn't work suddenly

    Hello forum,
    we have a little problem with our productive PI 7.0. Out of a sudden the login on Repositoy and Directory doesn't work anymore. RWB, ABAP login and SLD work properly. Out admin is on holiday and hopefully hasn't changed anything to our user data... Is there a task or anything which could cause this?
    If yes, how to fix it?
    Regards
    Christian

    HI,
            You can do soft restart through tcode SMICM on Abap stack.
            Tab --> Administration --> ICM  --> J2EE Instance --> Send Soft Shutdown --> With Restart.
    It will restart only java stack.
    Regards,
    Anurag

Maybe you are looking for

  • Configuring php5 with enable XML on OAS 10.1.3.x

    My requirement is to enable XML on OAS 10.1.3.5. I am not sure how to configure it, so I stated using separate PHP5.2 to configure with XML enable on the server. After installation, when I am starting the opmn services I am getting below error. I thi

  • ADF application as WAR

    i am using jdeveloper 11.1.1.3. I would like to know whether i can have my ADF application bundled as a war and deployed , as i want to enable session sharing in my EAR, which has more than one WAR in it and this ADF application will also be as a WAR

  • What exactly we do as part of Generate Comparison Terms and Evaluate Comparison terms

    Dear Experts, As part of SAP GTS area menuin SPL Screening process, I could see below 3 options, I tried to understand by reading SAP HELP and other available documents, but not able to understand completely . Can you please help me in by explaining

  • Different color of row

    Hi experts, I need to change the color the last row of my table with a different color. How can I do this? TKS a lot in advance

  • Doubt reg BAPI

    Hi all, can anyone tell me what all data needs to be passed to bapi BAPI_RESERVATION_CREATE. any could me a sample code Thanks