Script language for LAN, WAN, wireless?

which scripting language are used for LAN, WAN, wireless to automate things etc? python, shell scripting? is there a tutorial available to i can refer to?

It depends on what you are trying to do.
Shell scripting is quite limited in what it can do when compared to a more general purpose scripting language such as Perl or Python. Nothing wrong with that and I have used shell scripts a lot when I was a Unix admin but for networking most of what I have seen in terms of script languages has been TCL, Perl and Python.
You can use scripts to automate logging on to devices and executing commands, basically the script does what you would type in. To do this you can use Expect and Perl, Python and TCL all have Expect functionality (Expect was originally an extension to TCL).
But you are still just basically automating what you yourself would type and you would run these scripts from a server, PC etc although if you have a lot of devices you need to update with the same details it can save a considerable amount of time and just as importantly if the script works it removes the human error element of configuring multiple devices and perhaps getting a few wrong.
The next step is EEM where the device has an inbuilt TCL interpreter which means you can write applets or scripts that are stored on the device and can respond to specific things happening eg. if an interface goes up or down or the routing table is changed you can execute a set of commands.
There is an EEM forum on here.
I believe also that Nexus switches have an inbuilt Python interpreter which allows pretty much the same thing.
The advantages of the interpreter being on the device is that it saves a lot of extra coding and you can get more information because Cisco have added libraries to those interpreters which are specific to the device and which provide you with a standard set of APIs which your script can use.
As I said scripting can save a lot of time and there is an argument that all network engineers should at least now some scripting and this has become more of a hot topic with the promise of what SDN can achieve in the future although it has to be said there are already configuration management tools out there which make use of the above languages.
It really depends on what you are trying to do and how much you want to automate things.
In terms of tutorials etc. for all the major scripting languages there are a lot of online tutorials and books you can use.
In addition there are sites where you can run your scripts online but to be honest it is easier to simply download the interpreter to your PC, laptop etc. and you should be able to find a compiled version of the interpreter for whatever OS you are running.
Jon

Similar Messages

  • Simple statically typed scripting language for my game?

    Hi, I'm looking for a scripting language for my little game. I want make game runnable on both mobile and desktop. I would like to compile scripts to native java for j2me, so they don't suffer from interpreter overhead (possiblity of running an interpreter on j2me is a plus, I can imagine it on high-end devices). On j2se, I would like to have all code to be interpreted (or dynamically compiled, whatever) so user can, for example, download new game content from the internet. Also I would like the language to be simple and cute and it does not have to provide advanced features (like closures or generators). Even classes are optional.
    To sum up the requirements:
    - statically typed (ideally with smart type inference). This is must in order to allow compilation.
    - as simple as possibly (all I want is to define some functions and call them from the game).
    - can be compiled to clean Java (byte)code. I mean, it should not wrap every int to Integer for example. Compiled code runs on J2ME.
    - can be interpreted (or compiled on demand). Possibility to do this on J2ME is not required but welcome.
    - direct importing of native java classes is not required (actually I don't like it, I would like to draw a clean line between scripts and the engine)
    - free license (gpl is ok too)
    - python-like syntax is a plus :)
    Anyone ever heard about such thing? I'm prepared to implement some missing features. Actually I'm prepared to write it all if I don't find suitable starting point.

    I fail to see how this is a Java Game Development Issue, or even a Java issue: what you are asking for is a scripting language that you can consequently get the freedom to run on multiple environments through compiling to Java. IMO: not a Java issue at all.

  • Details about Script language for "Replacement" in email templates

    Dear All,
    I am using Send Notification callable object for sending emails. And I have designed a template for the same.
    Now I know that while using Replacements I can't display context attributes of type "LIST".
    So is there any way to achieve this??? Can I make use loop statement in script language of Replacement??
    Can anybody tell me where do I find the sample usage of script language?
    Thanks and regards,
    Amey Mogare

    Hi,
    Please refer this
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/f9097d1b607061e10000000a1553f6/frameset.htm
    -Ashutosh

  • FormCalc script language for calculating PV

    Greetings,
    I need to calculate a Present Value (PV) in a table for rent. I can not (after many, many tries) come up with the formcalc script language that mirrors the Excel formula my boss has used in a spreadsheet.
    I know the 'formula' is PV(n1, n2, n3), but that is apparently NOT what needs to be written as the script. Do I use ".rawValue" in writing this out? Do I use the ctrl+applicable cell in choosing a segment?
    My first example of needing to calculate this  is having a total amount for a year's rent, a discount rate of [user entered, example would be 5%], and a period of the term year minus 1 (so year 1 would be 0 or not used; year 2 would be 1, year 3 would be 2). This is what the Excel formula relates to, although it uses a negative (minus) in front of the year's rent amount.
    Writing PV(yramount,  discountrate, yr-1) doesn't do anything to create the answer.
    Do I write ...    $.rawValue = PV(yramount.rawValue, discountrate.rawValue, yr-1.rawValue) or ....
    I can't figure it out (and I've tried this formula every way I can imagine and I'm getting nowhere).
    I am also going to be calculating the Present Value of Total Lease Obligations each year (which is another oddity of  discountrate, yr-1, negative TotalLeaseobligation).
    Once I get 'row 1' calculating, the following rows will be added based on the number of term years, and the calculating will include percentage increases over the prior year along the way. I can't wait :-O
    If someone could please help me crack the "actually USING in a form the formula for Present Value)", I will be so very grateful. It is decidedly beyond my sub-novice attempts.
    Thank you!
    Shu

    Oh, my, thank you so much! It is truly baffling to me. I’ve attached my efforts for what it’s worth. I try to explain more below.
    I was basing my ‘assumption’ on this ‘formcalc information’ – but obviously I couldn’t do anything with it as it is too cryptic for a beginner.
    Here is the Excel formula used in the current spreadsheet:
    = PV($B$22,B$26,,-C28
    Where B22 is the Discount rate (e.g. 5%)
    B26 is a number representing the year number of the prior year in the Term (e.g., the first year pulls a blank cell, the 2nd year pulls “1”, the 3rd year pulls “2”)
    C28 is the Base Rent amount for the year being calculated, but shown as a negative (?)  [That number is calculated as a $/square foot * number of square feet]
    In my LCD form, I’m calculating in a table in which there is a header row, a footer row, currently 2 body rows, and I’m trying to get all the values to calculate based on information “provided above” in the form. The first challenge is the first row and I’ve gotten everything to ‘work’ except the “Total Base Rent(PV)” and the “Total Lease Obligation(PV)” the 3rd PV value is an arithmetic calculation between these results.
    Current Row 1 formulas:
    Base Rent: $.rawValue = NF3BaseRentPersf.rawValue * NF1SquareFootage.rawValue
    TI Costs: $.rawValue = NF14AnnDebtServTotal.rawValue
    Furniture Fixtures Equipment: $.rawValue = NF14FFETotal.rawValue
    Move Costs:  $.rawValue = NF14MoveCostsTotal.rawValue
    Total Lease Obligations: $.rawValue = Cell2.rawValue + Cell3.rawValue + Cell4.rawValue + Cell5.rawValue
    Common Area Costs: $.rawValue = NF4OpExPersf.rawValue * NF1SquareFootage.rawValue
    Utilities: $.rawValue = NF5UtilPersf.rawValue * NF1SquareFootage.rawValue
    Other Expenses: $.rawValue = NF6OtherPersf.rawValue * NF1SquareFootage.rawValue
    Total Operating Expenses: $.rawValue = Cell7.rawValue + Cell8.rawValue + Cell9.rawValue
    TOTAL Estimated Costs: $.rawValue = Cell6.rawValue + Cell10.rawValue
    Total Base Rent (PV): ______________________?
    Total TI & Other Costs (PV): $.rawValue = Cell14.rawValue - Cell12.rawValue
    Total Lease Obligation (PV): _______________________ ? (THIS -> doesn't work: $.rawValue = PV(NF15DiscountRate.rawValue,, -Cell6.rawValue)
    I'm sorry for being so naive with all this. We are gobsmacked (in a great way) with the possibilities of LCD-- IF I can just get the hang of this stuff.
    Here's the hierarchy for the table:
    and these are related hierarchy references (you can tell I haven't quite gotten the naming of objects down very well).
    AND my NEXT challenges: I am trying to make this a ?repeating row table? And will attempt to add an 'add row' button that will allow the addition of a row reflecting the number of years in the proposed term (from 1-10, usually). So I need the amount to sum in the footer as well as the couple of sums within each row. Starting with the 2nd year, the Base Rent and Operating Expenses amounts will be a factor of the prior year's amount * the applicable Escalation % (Base Rent Escalation or Estimated Annual Expenses Escalation) -- which is why I figured I had to go on and include the 2nd row to put those formulas therein. I am ASSUMING that when I enerate subsequent rows with the "Add Row" button (crossing fingers!) that the formulas will duplicate and the correct amounts will be reflected, including the right totals -- although for a 1-year term I'll need to figure out how to 'delete row' the 2nd row so the totals aren't ka-flooey.
    I am extremely grateful for your help in any way you can share. This is a lot of fun -- but I just don't speak the LCD language yet. Thus I flounder.
    Appreciatively,
    Shu
    p.s. I am not sure how to provide a copy of my actual form-in-progress. Much of what I'd written in reply was stripped out so I've come back in to edit and add what I'm able.Thanks again!

  • Scripting language

    Can sombody tell me something about a scripting language for j2me. I'm looking for something realy simple make it easy to update and customize the business logic of my app without updating the whole thing.
    Any thoughts welcome!

    Hmm, problem is that the expression uses strings that represent data object's. I look them up in a hashtable. I can't change that, since it is a fundamental design thing the rest of the app is building on.
    Right now, I'm profiling what makes it this slow.. ATM, it is my string split function, still don't know what part though. Any sugestions on how to do that fast would be great ;)
    My current code:
    public final static String[] split( String str, char separatorChar, char strt, char nd )      
          if ( str == null ) {
             return null;
          int       len     = str.length();
          if ( len == 0 ) {
             return null;
          Vector    list    = new Vector();
          int       i       = 0;
          int       start   = 0;
          int       indent  = 0;
          boolean   match   = false;
          while ( i < len ) {
             if ( str.charAt( i ) == strt ) {
                indent++;
             } else if ( str.charAt( i ) == nd ) {
                indent--;
             if ( indent == 0 ) {
                if ( str.charAt( i ) == separatorChar ) {
                   if ( match ) {
                      list.addElement( str.substring( start, i ).trim() );
                      match = false;
                   start = ++i;
                   continue;
             match = true;
             i++;
          if ( match ) {
             list.addElement( str.substring( start, i ).trim() );
          String[]  arr     = new String[list.size()];
          list.copyInto( arr );
          return arr;
       }As you can see, I must not split if a split char is between two other chars. I tried working with byte array's and not strings, but that doesn't speed things up.
    Also notices somthing strage while decompiling the Vector class:
        public synchronized void copyInto(Object[] anArray) {
         int i = elementCount;
         while (i-- > 0)
             anArray[i] = elementData;
    Why did they not use an arraycopy... I guess that would be much faster. But as it turns out, this part is not slow. The implementation in my device is probably better :)

  • Looking for a more universal scripting language than AppleScript or Automator

    I want to learn a cross-platform/web scripting language to automate tasks, write scripts and with the potential to create programs and web apps.
    I am looking for something that:
    - is not a program with a GUI like Automator, iKey, Quickeys, Maestro... 
    - is more "universal" than Applescript, cross-platform
    - can be used to automate simple tasks in a simple way
    - can also be used to create more complex scripts, web apps and maybe, eventually, programs (with GUI)
    I've read about Javascript, Python, Ruby, PHP, Perl, C+, C++, Java and others, but I really don't know.
    - Java sounds pretty cool, Python too.
    - I'm not crazy about PHP or Perl, with Javascript, but some people swear by it
    - I don't know anything about C+, C++
    Does anyone have any suggestion(s)?  Please let me know if you need any more details.  Thank you.

    C, C++, Objective-C are nor scripting languages and will not help you do web pages. (Don;t know what C+ is).
    Forget Java it has lots of security problems and more and more users are disabling Java in their web browsers because of this. Developing in Java would be, in my opinion, a mistake.
    If you are doing any web works at all you will need to know some Javascript, no way around that.  But Javascript is actually not a bad language
    Note Java and Javascript are two totally separate languages that have nothing in common  but the first 4 letters of their names.
    So you are left with PHP, Perl, Python and Ruby.
    Dismissing PHP and Perl out of hand is a big mistake, They are both major players and you will run into them just about everywhere. If you are looking to do this for possible employment you will need to be familiar with them at least.
    Python and Ruby are both strong languages as well. I don't have a lot of experience with either so I can;t speak to their strengths  but  learnign either would not be a mistake.
    Knowing what your reasons are for asking this, personal use or for employment, might help refine the list some.
    regards
    Message was edited by: Frank Caggiano - Perl is also included in OS X by default. Not sure about PHP but I believe it also is. I agree TextWrangler would be a good editor for this type of work.

  • Scripting Language Options for the Script Task Options SSIS 2012

    Can python or perl be used as a script language in the drag and drop script task? I believe only VB.Net and C# are, but I see under SSDT Tools -> Options there are some choices for Python Debugging? I'd like to use python as my SSIS scripting language
    in some cases. If it can not be used as the script task language, what are the Python options under Tools -> Options for?
    Any experts out there who can illuminate?
    Thanks all

    Hello,
    In SSDT in a SSIS Script task you can only use Visual Basic.NET and C#, no other programming / scripting languages.
    SSDST is a plugin for Visual Studio and in VS you will find several options which are irrelevant for SSIS projects, like this Phyton debugging option.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Poonya Script :: The new programming language for Web

    Poony Script is a new programming language for Web, working with proxies between Flash Player and ActionScript 3, and a powerful performance and high flexibility of development, in addition to being free and unrestricted.
    To learn more about the novel technology in between:
    http://www.poonya.com/

    Hello AHernandezIP,
    The "Poony Script" was not made up to leave the AS3, but to expand the capabilities of it in Flash.
    The performance needs been studied carefully, and we get more than 80% of the performance of AS3, and it is still better and better that agent works in the API.
    Yet even this year we will be launching version "Studio" to create files 'swf' directly from the browser.
    We now know that more and more programs are becoming more complex, and the famous "Internet Cloud" is coming increasingly to everyone.
    The need now is to make a compiler that runs directly from the browser without installing anything on your computer.
    Who has vision of the future known as the "Poony Script" will be helpful.
    Thank you!

  • There is any Scripting languages is used for mobile application development

    Is there is any Scripting languages is used for mobile application development?
    For example java script,vb script is used for web development.Like that is there is any scripting language is used for mobile application development along with J2me.
    Thanks & Regards, Sivakumar.J

    806437 wrote:
    .. is there is any scripting language is used for mobile application development along with J2me.If you are talking about javax.script,
    google ( [url http://www.google.com/search?q=java+me+javax.script]java me javax.script ) gave me http://sourceforge.net/projects/rhinoj2mecldc/

  • Scripting Languages are for Insane People!!!!

    Hope you brought your flamethrowers because I am feeling a bit chilled.
    Sooo I am knee deep in some heavy javascript(Nodejs) and while fighting to populate an array with the results of a sqlite query
    (somehow my array is getting nuked nodejs or nodejs-sqlite3 bug? )
    I am left scratching my head saying to my self WTF!! This would have taken me like 5 sec in Qt C++. So I wrote up the same example
    in Ruby, Python, Java, Lua and Perl. And in every case my Qt C++ example was not only cleaner, shorter but easier to write/understand.
    Granted scripting languages are not only valuable but necessary in CERTAIN cases, but the way people use them today is just INSANE.
    My primary scripting language is javascript but that is only because my work requires it. But ill take lua over any scripting language any day.
    I am going to go sink my teeth in Django see if that pisses me off any less!
    Sooo whats your opinion.
    Last edited by zester (2011-09-13 05:19:18)

    satanselbow wrote:
    ethail wrote:
    keenerd wrote:But Lua is a scripting language.  Maybe I missed the joke?
    I think he could be pointing that of the many scripting languajes he has used, seems that only LUA satisfies him, and it's not widely used as he would like. That's what it seemed to me.
    Somewhat ironically (within this threads context) - one of Lua's biggest selling points is it's simple integration with other languages, both scripting and higher level.
    Good point!
    Lua is insanely <-- Word of the day (Pee-Wee Herman Play House AHHHHHHHHHH) easy
    to embed and bind.
    Little examples I wrote a couple of years ago sooooo it is what it is.
    If using C++
    extern "C" {
    #include "lua.h"
    #include "lualib.h"
    #include "lauxlib.h"
    How to call a C Function from Lua
    luaavg.c
    #include <stdio.h>
    #include "lua.h"
    #include "lualib.h"
    #include "lauxlib.h"
    /* gcc -o luaavg luaavg.c -I/usr/local/include -L/usr/local/lib -llua -lm -ldl */
    /* the Lua interpreter */
    lua_State* L;
    static int average(lua_State *L)
    /* get number of arguments */
    int n = lua_gettop(L);
    double sum = 0;
    int i;
    /* loop through each argument */
    for (i = 1; i <= n; i++)
    /* total the arguments */
    sum += lua_tonumber(L, i);
    /* push the average */
    lua_pushnumber(L, sum / n);
    /* push the sum */
    lua_pushnumber(L, sum);
    /* return the number of results */
    return 2;
    int main ( int argc, char *argv[] )
    /* initialize Lua */
    L = lua_open();
    /* load Lua base libraries */
    luaL_openlibs(L);
    /* register our function */
    lua_register(L, "average", average);
    /* run the script */
    luaL_dofile(L, "avg.lua");
    /* cleanup Lua */
    lua_close(L);
    /* print */
    printf( "Press enter to exit..." );
    getchar();
    return 0;
    -- call a C function
    avg, sum = average(10, 20, 30, 40, 50)
    print("The average is ", avg)
    print("The sum is ", sum)
    avg, sum = average(1, 2, 3, 4, 5)
    print("The average is ", avg)
    print("The sum is ", sum)
    --- How to call a Lua Function from C
    #include <stdio.h>
    #include "lua.h"
    #include "lualib.h"
    #include "lauxlib.h"
    /* gcc -o luadd luadd.c -I/usr/local/include -L/usr/local/lib -llua -lm -ldl */
    /* the Lua interpreter */
    lua_State* L;
    int luaadd ( int x, int y )
    int sum;
    /* the function name */
    lua_getglobal(L, "add");
    /* the first argument */
    lua_pushnumber(L, x);
    /* the second argument */
    lua_pushnumber(L, y);
    /* call the function with 2 arguments, return 1 result */
    lua_call(L, 2, 1);
    /* get the result */
    sum = (int)lua_tointeger(L, -1);
    lua_pop(L, 1);
    return sum;
    int main ( int argc, char *argv[] )
    int sum;
    /* initialize Lua */
    L = lua_open();
    /* load Lua base libraries */
    luaL_openlibs(L);
    /* load the script */
    luaL_dofile(L, "add.lua");
    /* call the add function */
    sum = luaadd( 10, 15 );
    /* print the result */
    printf( "The sum is %d\n", sum );
    /* cleanup Lua */
    lua_close(L);
    /* pause */
    printf( "Press enter to exit..." );
    getchar();
    return 0;
    -- add two numbers
    function add ( x, y )
    return x + y
    end
    --- How to load and call a lua function from c
    //last.cc
    # extern "C" {
    # #include "lua.h"
    # #include "lualib.h"
    # #include "lauxlib.h"
    int main()
    double z;
    lua_State *L = lua_open();
    luaL_openlibs(L);
    if (luaL_loadfile(L, "last.lua") || lua_pcall(L, 0, 0, 0)) {
    printf("error: %s", lua_tostring(L, -1));
    return -1;
    lua_getglobal(L, "f");
    if(!lua_isfunction(L,-1))
    lua_pop(L,1);
    return -1;
    lua_pushnumber(L, 21); /* push 1st argument */
    lua_pushnumber(L, 31); /* push 2nd argument */
    /* do the call (2 arguments, 1 result) */
    if (lua_pcall(L, 2, 1, 0) != 0) {
    printf("error running function `f': %s\n",lua_tostring(L, -1));
    return -1;
    /* retrieve result */
    if (!lua_isnumber(L, -1)) {
    printf("function `f' must return a number\n");
    return -1;
    z = lua_tonumber(L, -1);
    printf("Result: %f\n",z);
    lua_pop(L, 1);
    lua_close(L);
    return 0;
    function f (x, y)
    return (x^2 * math.sin(y))/(1 - x)
    end
    ---- How to execute a Lua Script from C.
    #include "lua.h"
    #include "lualib.h"
    #include "lauxlib.h"
    /* gcc -o luatest luatest.c -I/usr/local/include -L/usr/local/lib -llua -lm -ldl */
    int main()
    int s=0;
    lua_State *L = lua_open();
    // load the libs
    luaL_openlibs(L);
    //run a Lua scrip here
    luaL_dofile(L,"foo.lua");
    printf("\nAllright we are back in C.\n");
    lua_close(L);
    return 0;
    io.write("Please enter your name: ")
    name = io.read() -- read input from user
    print ("Hi " .. name .. ", did you know we are in lua right now?")
    ---- How to get a Variable value from Lua to C.
    #include <stdio.h>
    #include <lua.h>
    #include <lualib.h>
    #include <lauxlib.h>
    #include <string.h>
    /* gcc -o test test.c -I/usr/local/include -L/usr/local/lib -llua -lm -ldl */
    int main()
    lua_State *L = lua_open();
    if(luaL_loadfile(L,"settings.lua") || lua_pcall(L,0,0,0))
    printf("Error failed to load %s",lua_tostring(L,-1));
    else
    lua_getglobal(L,"screenWidth");
    const int screenWidth = lua_tonumber(L,-1);
    printf("Screen Width = %d \n", screenWidth);
    lua_getglobal(L,"appName");
    const char *appName = luaL_checkstring(L, -1);
    printf("Screen Name = %s \n", appName);
    lua_close(L);
    /* If we got this far, everything worked */
    printf("Success!\n");
    return 0;
    appName = "Firefox"
    screenWidth = 400
    ------ How to write a lua binding in C.
    #include "lua.h"
    #include "lualib.h"
    #include "lauxlib.h"
    #include <string.h>
    /* gcc zstring.c -Wall -shared -o zstring.so */
    static int zst_strlen(lua_State *L)
    size_t len;
    len = strlen(lua_tostring(L, 1));
    lua_pushnumber(L, len);
    return 1;
    int luaopen_zstring(lua_State *L)
    lua_register(L,"zst_strlen", zst_strlen);
    return 0;
    require "zstring"
    print(zst_strlen("Hello, World"))
    ----- Another Binding Example
    #include "lua.h"
    #include "lualib.h"
    #include "lauxlib.h"
    #include <unistd.h>
    #include <sys/stat.h>
    #include <stdlib.h>
    /* gcc general.c -Wall -shared -o general.so */
    /* system */
    static int zst_exec(lua_State *L)
    int status;
    status = system(lua_tostring(L, 1));
    lua_pushnumber(L, status);
    return 1;
    /* mkdir */
    static int zst_mkdir(lua_State *L)
    int status;
    mode_t mode = lua_tonumber(L, 2);
    status = mkdir(lua_tostring(L, 1), mode);
    lua_pushnumber(L, status);
    return 1;
    /* symlink */
    static int zst_symlink(lua_State *L)
    int status;
    const char *old = lua_tostring(L, 1);
    const char *new = lua_tostring(L, 2);
    status = symlink(old, new);
    lua_pushnumber(L, status);
    return 1;
    /* rmdir */
    static int zst_rmdir(lua_State *L)
    int status;
    status = rmdir(lua_tostring(L, 1));
    lua_pushnumber(L, status);
    return 1;
    /* rename */
    static int zst_rename(lua_State *L)
    int status;
    const char *old = lua_tostring(L, 1);
    const char *new = lua_tostring(L, 2);
    status = rename(old, new);
    lua_pushnumber(L, status);
    return 1;
    /* remove */
    static int zst_remove(lua_State *L)
    int status;
    const char *filename = lua_tostring(L, 1);
    status = remove(filename);
    lua_pushnumber(L, status);
    return 1;
    /* chown */
    static int zst_chown(lua_State *L)
    int status;
    const char *filename = lua_tostring(L, 1);
    uid_t owner = lua_tonumber(L, 2);
    gid_t group = lua_tonumber(L, 3);
    status = chown(filename, owner, group);
    lua_pushnumber(L, status);
    return 1;
    /* chmod */
    static int zst_chmod(lua_State *L)
    int status;
    const char *filename = lua_tostring(L, 1);
    mode_t mode = lua_tonumber(L, 2);
    status = chmod(filename, mode);
    lua_pushnumber(L, status);
    return 1;
    /* get_current_dir_name */
    static int zst_getcwd(lua_State *L)
    char *dir;
    dir = get_current_dir_name();
    lua_pushstring(L, dir);
    return 1;
    int luaopen_general(lua_State *L)
    lua_register(L,"zst_exec", zst_exec);
    lua_register(L,"zst_mkdir", zst_mkdir);
    lua_register(L,"zst_symlink", zst_symlink);
    lua_register(L,"zst_rmdir", zst_rmdir);
    lua_register(L,"zst_rename", zst_rename);
    lua_register(L,"zst_remove", zst_remove);
    lua_register(L,"zst_chown", zst_chown);
    lua_register(L,"zst_chmod", zst_chmod);
    lua_register(L,"zst_getcwd", zst_getcwd);
    return 0;
    Ugggg lost all the formating in that.
    If you cant make heads or tails of the above you can view it on my google code wiki http://code.google.com/p/zester/wiki/Lua_C
    Last edited by zester (2011-09-13 18:20:07)

  • Looking for hardware (PCI Wireless LAN)

    I'm looking for a PCI Wireless LAN card that will work well with Linux, does anyone know of any place that documents this sort of thing? (as in a list)

    Euphoric Nightmare wrote:Okay, just figured out i can't use pci, because there are no slots available...fucking dells...i'll have to look at some other options
    I think it's other option, singular - as in USB? I recently had to switch wifi to USB myself, when my laptop's card slots died. After a bit of research, I went for the prism2 chipset with the wlan-ng driver - specifically, the Netgear MA111. It's all working fine now, but in retrospect, I'd probably go for something that works better with wireless_tools.
    AFAICS, there aren't any stable drivers for 802.11g over USB - madwifi may or may not do it, depending on Atheros, prism54 is trying, and they have pre-alpha stuff available for the brave/foolish, and there's also the zd1211 project on sourceforge.

  • How can I create a new TC backup with ethernet, so I don't have to wait two days for a new wireless backup?

    How can I create a new TC backup with ethernet, so I don't have to wait two days for a new wireless backup?
    Several times in the last year, I've gotten a message that Time Machine needs to completely redo my backup. Using the wireless connection, this takes almost two days. Is there a way to do the backup with ethernet and then switch back to wireless? Thanks.

    May I know what is needed to make sure the MacBook is able to see Time Capsule on ethernet?
    Connect an Ethernet cable from one of the LAN <-> ports on the 2Wire gateway to the WAN port (circle of dots icon) on the Time Capsule.
    If AirPort Utility cannot "see" the Time Capsule now, you will need to perform a "hard reset" by holding in the reset button for 7-8 seconds or so and then reconfigure the Time Capsule. You can use the same Time Capsule name and password, etc. as before.
    Configure the Time Capsule to "Create a wireless network" and select the Bridge Mode option when it appears during the setup using AirPort Utility.
    Once the Time Capsule is configured, restart the entire network again. Power down everything, start the 2Wire first and then start each other device after that one at a time about a minute apart.
    Now you can connect your Mac directly to one of the LAN <-> ports on the Time Capsule for the backup using another Ethernet cable. In general, about 20-25 GB per hour will transfer.
    The Time Capsule will broadcast a much faster wireless network than the 2Wire can provide, so you might want to leave the setup "as is" for awhile after the first backup is complete. If you decide to use the Time Capsule as your main wireless access point, you would want to turn the wireless off on the 2Wire since two wireless networks in close proximity can create interference problems.
    Or, if you want to use the wireless on the 2Wire, you could turn off the wireless on the Time Capsule. Then backups will occur over the 2Wire wireless, or over Ethernet.
    I don't really recommend the "Join a wireless network" setting on the Time Capsule for most users, but you could go back to that setup as well if you want after the first backup is complete.

  • Can I use the Time Capsule strictly for system backup and continue to use my Airport Extreme for all my wireless needs

    I want to use the Apple Time Capsule as an external drive and continue to use my Airport Extreme for all my wireless needs. Can I do that? The reason I ask is that my Time Machine utility cannot find the TIme Capsule - it only shows me the Airport Extreme, even when I "Rescan". SO I am unable to use the Time Capsule.

    You will need to connect an Ethernet cable from one of the LAN <-> ports on the AirPort Extreme to the WAN "O" port on the Time Capsule.
    Perform a "hard reset" on the Time Capsule by holding in the reset button for 9-10 seconds, then give it another minute to restart to a slow, blinking amber light.
    Open AirPort Utility, select the Time Capsule, and click Manual Setup
    Click the Time Capsule tab located below the row of icons to assign a name to the Time Capsule, a device password, and adjust Time Zone settings.
    Next, click the Wireless tab located to the right of the Time Capsule tab
    Change the setting for Wireless Mode to Off
    Click the Internet icon, then click the Internet Connection tab
    Connect Using = Ethernet
    Connection Sharing = Off (Bridge Mode)
    Click Update at the lower right to save the settings and allow 30 seconds for the Time Capsule to restart to a green light.
    You are all set

  • SAP Scripting Languages on the SDN Day - Amsterdam

    I would like to give a short summary of what happened on the SDN Day in Amsterdam, the 17-th Oct. 2006.
    After the breakfast Craig Cmehil gave us a welcome to the event and presented the schedule. We started with a power networking session: Four 20-minute Sessions with Six SDNers per Table. As I was sitting at the Scripting Languages table, I would like to share some impressions of the atmosphere there. We talked much about the emmerging SAP Scripting Tool and how much value it will bring to all scripting projects that plan to utilize SAP backend systems. We discussed Gregor Wolf's contest and he was so kind to inform us that his test system is also available inside the SAP corporate network, so all SAP employees now can participate too. Gregor works for Siteco Beleuchtungstechnik GmbH and the award they offer for the contest is a Siteco Vistosa task light. More information about the contest can be found at https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4588. [original link is broken] [original link is broken] Another key discussion was held with Björn Schotte, the chief editor of PHP Magazine, Germany, presenting also his company Mayflower Gmbh. He shared some visions on business applications of PHP and stated that PHP is definitely enterprise ready.
    Then after a very short pause we started the SDN breakout sessions (3-5 in parallel). I visited the sessions of Gregor Wolf, André Labahn, Björn Schotte and after this I cooperated for the breakout session of Frank Mittag.
    Session 1:
    Connecting Typo3 to R/3 Enterprise via Web Services with Gregor Wolf from Siteco Beleuchtungstechnik GmbH
    Siteco Beleuchtungstechnik GmbH currently implements a customer service centre into it's Typo3 based website. Typo3 is an Open Source Web Content Management system based on the Scripting Language PHP. The application will allow Siteco's customers to directly check price & availability of products from the backend R/3 Enterprise system, quotations, orders and delivery status. The backend connectivity uses Web Services utilise the PEAR SOAP Package.
    Session 2:
    SAP supports Scripting Languages with Andre Labahn from SAP.
    This session will provide you with more insights on how SAP is supporting scripting languages.
    Session 3:
    Scripting Languages PHP and Enterprise Software with Björn Schotte (Chief Editor from PHP Magazine).
    This session showed us a brief history of PHP and PHP in Germany. Some enterprise applications of PHP were discussed. Björn Schotte was the opinion that PHP is definitely enterprise ready and he proved it with an example of a system that his company has created for Siemens.
    Session 4:
    Scripting Languages Tool with Frank Mittag and Vasil Bachvarov (me) from SAP
    SAP will provide a open source tool to the scripting development community that is supporting the access to SAP Backend Systems via RFC/BAPIs and Webservices. See the concept and demo of the tool and discuss this with SAP Development.
    There was a pretty interesting discussion about the tool. Since the time for the last session shrinked with some minutes we had to be very quick, but Frank Mittag did a great job and succeeded to explain the basic concept of the SAP Scripting Tool and show it in action for the tough time constraint.
    There were a lot of questions from the audience but it was already 18:30 and we stopped at this point. There would be a second chance for questions on thursday when Frank had the opportunity to make a more complete and comprehensive walk-through of the project.
    Then we gathered in the meeting hall and Shai Agassi held a speech and made a summary of the event.
    The evening finished in the BoomChicago theater where everybody received a delicious meal, drinks and a great amount of fun with the ChicagoBoom comic crew.
    I would like to thank all people that made this event come true! See you soon in Bangalore.
    Best Regards,
    Vasil Bachvarov
    SAP AG

    I'm be there in Amsterdam as well.  In fact I am leaving the US on Sunday and arriving early Monday morning in Amsterdam. 
    I was planning to do a little site seeing on Monday Afternoon.  If anyone else is arriving a bit early as well, they are welcome to join me.  It is always more fun to site see in groups.  My email address is public in my SDN business card (also not too difficult to figure out ) if anyone is interested in meeting up.

  • Multi Languages for Org Unit

    Hi experts,
    Is it possible to have 2 sets of language for abbr and name in IT1000 for org unit in the same period?
    example:
    Start Date : 01.01.2008
    Language: English
    Abbr: HR
    Name: HR department
    Start Date : 01.01.2008
    Language: Chinese
    Abbr: HR
    Name: HR department (Chinese)
    Regards,
    Joanna

    Hi,
    It is possible.
    But before that need to chk with basis guys whether unicoding is enabled or not.
    If Yes the chk chineese script is enabled or not.
    If yes then maintain the orgunits in english language by entering SAP in English language (U can find the language seletion field in log in screen).
    Upload the orgunits. then go to Tcode RE_RHTRANS0 to put the names in Chineese.
    This is one option.
    2nd option is prepare the excel sheet with Chineese language with orgunit keys. Log in into SAP in Chineese language.
    Upload the data.
    ~BiSu

Maybe you are looking for

  • Passing multiple values to the QUERY BDOC parameter?

    hi All, Below is my Query BDOC Anchor Before Query Execute even handler... I'm trying to pass multiple values to the         bq.Z_PartnerFunction query parameter... i.e.  PARTNER_FCT in( '00000012','ZDIVMGR','ZAREADR') is it possible without creating

  • Urgent - Stock transfer

    We have an issue where a sales order has been created and the stock allocated to that line item has been confirmed to the wrong line item What we want to do is move the stock from line item 30 to line item 40 , please note line item 30 has been confi

  • Griffith "by collection" feature doesn't work

    Hi All, I'm using griffith to catalog my video collection and I have three collection categories, children, music and films. When I click on "by collection" and select one of the categories there is no change in the list. I have opened the same backu

  • Cannot connect to Fasthosts using BB

    As it says. For days now, i have been unable to connect to fasthosts.co.uk using my BT Broadband. Every time I try, I get 'webpage not available' with error code "Error 7 (net::ERR_TIMED_OUT): The operation timed out." (Google Chrome) I don't have th

  • Captivate crash

    Yesterday I tried Adobe Captivate 2 on two computers: A fully updated Windows XP and a fully updated Windows 2000 SP4 on a ThinkPad T60 On the XP computer it worked like a charm... but when I tried it on the w2k computer it crashed.. and the followin