Way to database and invoke command in terminal? Cool way to trigger?

Hi... I'm thinking about all the code snippets I use... and just put into a text file and have to cut and paste.
Now that I'm getting ARCH savvy it would be great if there was a GURU-like way to have all my command at the ready instead of using the arrow keys to scroll 'back in time' to find the one i want...
IS there a way to trigger off commands that's really smart?
thanks!

UPDATE:  see studying already!!! more learning!
http://www.linux.org/docs/ldp/howto/Bas … /x246.html
u_no_hu !!!
Well, it's kinda random in a way.
Like today I was learing how to get alsa and jack and usb headphones, and and and and and
there's like 40 or 50 distinct lines that I've triggered in terminal a dozen or so of which, I'm still thinking about, wondering this and that about and would like to be able to have in some kind of record.
So, attempting to be cocise here, um, and being pretty poor at it today... hehehe
I'm going thru, what for me is a very big assention to becoming average.... :---)
geez, it's been incredible these past several months and what's starting to happen more and more is I've forgotten stuff, how I did this and how I did that...
So, I keep text files for very program of note.
So JACK has a list of notes and commands.
FFmpeg/recordmydesktop/blender/   WELL.... there's dozens of programs and I'm really into figuring stuff out like so many of us...
So.... really I am quite interested in studying the comments that have been kindly offered to me here today.
great interest in bash, how to use alas and function....SOUNDS GReat!!!
Right now I'm wondering IF I've missed some wonderful app that is a stepping stone to being really fast and efficint with terminal.... or just some novel text file based way of speeding things up AND having all my discoveries at my findertips quickly.....
dunno! though I WILL look into all this...
maybe just having a text file for every program IS a good approach and having the project with all the text files open in bluefish I guess...
there's no way to as yet remember every idiosyncratic thing I learn every day...
Last edited by yvonney (2009-01-18 10:04:33)

Similar Messages

  • Tracert and pathping commands for terminal

    hi all,
    i need to make a pathping and tracert to contest my speed with my isp. the lag and download speed is horrible. i am only getting a summary of the hop information but not the trail. i am only getting this
    traceroute to xxxxxxxx (xxxxxxx), 64 hops max, 52 byte packets
    i want the entire trail. what's the right commad for both pathping and traceroute?

    1a) 'iwlist' is what you want - "iwlist wlan0 scan" will use wlan0 and scan for all networks
    1b) 'iwconfig' is used to connect, but you may have to use ifconfig first.  Here's a quick rundown
    ifconfig wlan0 up
    iwconfig wlan0 essid FooBar key xyz
    dhcpcd wlan0
    2) irssi and weechat are the two forerunners in the arch community as far as I know
    3) there's quite a lot - centericq, naim, mcabber, bitlbee (allows you to use an irc client like irssi)
    4) mutt, pine, etc
    5) this was covered by dolby
    6) mpd works quote well, there's also moc, and many many others
    7) 'bc' works fairly well, but it might be a but hard to use at first - try here http://www.cyreksoft.yorks.com/gnu-bc/

  • Hi, i have tryed to install os x leopard, (its a old imac) , disk utility is greyed out , my install dvd cant find any hdd to install on , my only way to format and configure is through terminal but dont know what commands to execute

    hi, i have tryed to install os x leopard, (its a old imac) , disk utility is greyed out , my install dvd cant find any hdd to install on , my only way to format and configure is through terminal but dont know what commands to execute...
    i tryed diffrent commands such as diskutil eraseDisk JHFS+ Disk1
    diskutil list , wont show up my harddrive , i now its functionally cause it shows up in disk utility with name and i can get info about it , but everything is greyed out can only switch between "erase , partition , recover , Raid ,....
    when i click the apple in the top left corner the whole menu is greyed out... what to do ?  help me please
    Sincerly AppleNoob92
    p.s i have no experience in apple imac's at all never used before, but im kinda windows nerd so computers i understand but this imac make my insane, cant seem to find any solutions anywhere on the WWW....

    Your HD may be crashed, so you probably should use the oringinal install discs to run Apple Hardware Test in extended mode. If error codes appear this confirms a hardware failure. In addition you cannnot repair the HD using Disk Utility from the startup disk, you have to use the origninal Install discs that shipped with the computer or the most up-to-date version of OS X on a disc that you have.

  • Is there a way to make invoke-command interactive?

    Hello,
    I have a script that runs an invoke-command with multiple arguments and performs operation on a remote workstation.
    I want to add some additional confirmations and dialogue choices depending on how the script block executes on the remove PC.
    Is there a way to do that?

    I'm afraid it's not possible in my scenario.
    I'm using invoke-command with Credssp authentication because I need to execute a number of commandlets that are only installed on a specific remote server. Those powershell commandlets from Microsoft do not work if installed on the client.
    Those commandlets use network share resources too, that's why Credssp is used.
    During the execution of invoke-command I wanted to make an additional confirmation for overwriting of some resources.
    The other option is to run several invoke-commands and get output from the queries, construct the dialogue options based on those queries and  gather input locally and then run the final execute invoke-command last, but it seems just like too much of
    hassle for now, so i'll leave things as they are.

  • Invoke-Command and ShellId Issues

    Hi all,
    I'm struggling to figure out what is going on here.
    I'm trying to add a domain user to a VM's local administrators group via this:
    $localAdminBlock = `
    $objUser = [ADSI]("WinNT://domain/domainaccount")
    $objGroup = [ADSI]("WinNT://$vm/Administrators")
    $objGroup.PSBase.Invoke("Add",$objUser.PSBase.Path)
    Invoke-Command -ComputerName $vm -Scriptblock $localAdminBlock -Credential $adminCreds
    I receive an error:
    "Processing data from remote server TestServer failed with the following error message: The request for the Windows Remote Shell with ShellId <id here> failed because the shell was not found on the server.  Possible causes are: the specified
    ShellId is incorrect or the shell no longer exists on the server.  Provide the correct ShellId or create a new shell and retry the operation..."
    Any idea what's going on?
    Thanks.

    You need to use $using:vm instead of $vm since you are passing a value from a local variable into the scriptblock which
    is executed remotely. If you don't do this then the $vm will be $null in the remote session. If you use $using:vm then Invoke-Command will evaluate the local $vm variable and use this value in the remote session.
    $localAdminBlock = `
    $objUser = [ADSI]("WinNT://domain/domainaccount")
    $objGroup = [ADSI]("WinNT://$using:vm/Administrators")
    $objGroup.PSBase.Invoke("Add",$objUser.PSBase.Path)
    Invoke-Command -ComputerName $vm -Scriptblock $localAdminBlock -Credential $adminCreds
    --Neptune
    That was the issue, thanks a lot!

  • What are the commands using in SAP ECC 6.0 ehp on SYBASE Database? Backup and restore commands?

    Hi All,
    What are the commands using in SAP ECC 6.0 ehp on SYBASE Database? Backup and restore commands?

    Hi Jayachander,
    Have a look at these sap notes:
    For taking backup: Schedule from DB13 and get the exact command from Logs
    1841993 - SYB: How to schedule backups in DBA Cockpit
    1887068 - SYB: Using external backup and restore with SAP Sybase ASE
    How to restore DB
    1611715 - SYB: How to restore a Sybase ASE database server (Windows)
    Divyanshu

  • Retrieve URL from database and navigate through command button

    I am new to ADF and Jdeveloper. In our database we store the URLs to our help/FAQ webpage in a table. What I would like to do is retrieve this URL from the database and code a command button to navigate the user to this URL but I am not sure how to accomplish this and have not had any lucking searching for a solution. I have created a view object for the table that contains the URL. Many thanks in advance.

    Hi,
    Welcome to OTN.
    You can create a view object based on the table (on which you have the URL stored).
    Create a goButton (Instead of a command button) and bind the column (which stores the URL) to the destination property of the go button.
    Something like
    <af:goButton text="Help" id="gb1"
                        targetFrame="_blank" destination="#{bindings.URL.inputValue}"/>-Arun

  • It appears from my limited research and attempts that symbolic link command in Terminal is broken in 10.8.2

    It appears from my limited research and attempts that symbolic link command in Terminal is broken in 10.8.2
    Can anyone confirm or deny my observation ?

    It appears from my limited research and attempts that symbolic link command in Terminal is broken in 10.8.2
    Can anyone confirm or deny my observation ?

  • Bash script "open terminal and launch command

    I need a script to do this:
    launch a terminal, from this change working directory and then launch a command; the terminal have to remain opened after the command execution.
    Something like:
    $terminal cd $dir && $command
    If I open a terminal and I do:
    cd $dir && $command
    it works
    If I do a .sh script with this:
    xterm -hold -e cd $dir && $command
    or
    terminal -H -x cd $dir && $command
    when I launch it (the script) it doesn't work.
    Last edited by buntolo (2012-01-05 23:44:52)

    karol wrote:
    xterm -hold -e "cd ~/test/ && ls"
    works too.
    I don't know what $command do you mean, but this will list th ~/test directory.
    It works also for me.
    With urxvt and xfce4-terminal don't work.
    But xterm is too minimalist, is there an advanced terminal based on it?
    And I don't unerstand why it doesn't work for xfce4-terminal but for it does for xterm...
    man xfce4-terminal:
    -H, --hold
    Causes the terminal to be kept around after the child command has terminated
    -e, --command=command
    Execute command inside the terminal
    man xterm:
    -hold
    Turn on the hold resource, i.e., xterm will not immediately destroy its window when the shell command completes. It will wait until you use the window manager to destroy/kill the window, or if you use the menu entries that send a signal, e.g., HUP or KILL.
    -e program [ arguments ... ]
    This option specifies the program (and its command line arguments) to be run in the xterm window. It also sets the window title and icon name to be the basename of the program being executed if neither -T nor -n are given on the command line. This must be the last option on the command line.
    What the ...?
    Is only my opinion that there aren't differences between:
    terminal -H -e "cd $dir && $command"
    and
    xterm -hold -e "cd $dir && $command"
    Last edited by buntolo (2012-01-06 13:11:58)

  • Invoke-Command and $using:ACL problem

    Hi,
    Can anyone point me in the right direction.
    I want to modify and ACL on a remote server, but i cannot assign a variable inside the invoke-command where i'm also refferencing an local variable.
    When the first invoke-command is ran i get an error:
    A Using variable cannot be retrieved. A Using variable can be used only with Invoke-Command, Start-Job, or InlineScript
    in the script workflow. When it is used with Invoke-Command, the Using variable is valid only
    if the script block is invoked on a remote computer.
    $DriveFunctionDirectoryStructure="z:\projects\1"
    Invoke-Command
    -Session$s-ScriptBlock{$acl=get-acl$using:DriveFunctionDirectoryStructure}
    Invoke-Command
    -Session$s-ScriptBlock{$acl.SetAccessRuleProtection($using:True,$using:ToggleAccessRuleFlag)}
    Invoke-Command
    -Session$s-ScriptBlock{Start-Sleep-Seconds5}
    Invoke-Command
    -Session$s-ScriptBlock{$rule=New-ObjectSystem.Security.AccessControl.FileSystemAccessRule("localdomain\$using:groupName","$using:AccessOption","ContainerInherit,
    ObjectInherit","None","Allow")}
    Invoke-Command
    -Session$s-ScriptBlock{$acl.AddAccessRule($rule)}
    Invoke-Command
    -Session$s-ScriptBlock{Set-Acl$using:DriveFunctionDirectoryStructure$acl}

    Hi RFalken,
    you can use the -ArgumentList parameter of Invoke-Command like this:
    $script = {
    Param (
    $Parameter1,
    $Parameter2
    Invoke-Command -ScriptBlock $script -ArgumentList @(2,42)
    Cheers,
    Fred
    There's no place like 127.0.0.1

  • HT6030 Up to now, I have been able to check what is still sitting in my Sympatico mailbox on the server by selecting any email and hitting command-i to get info. All I get In Mavericks is a burp. Is there a way to do this that I don't know about?

    Up to now, I have been able to check what is still sitting in my Sympatico mailbox on the server by selecting any email and hitting command-i to get info. All I get In Mavericks is a burp. Is there a way to do this that I don't know about?

    1. You did not get an error message telling you that your iPhoto library was getting full. You got a message telling you that your HD was getting full, right?
    OS X needs about 10 gigs of hard drive space for normal OS operations - things like virtual memory, temporary files and so on.
    Without this space your Mac will slow down as the OS hunts for space on the disk, files will be fragmented, also slowing things down, apps will crash and the risk of data corruption - that is damage to your files, photos, music - increases exponentially.
    Your first priority is to make more space on that HD. Nothing else can be done until you do.
    Purchase an external HD and move your Photos and Music to it. Both iPhoto and iTunes can run perfectly well with the Library on an external disk.
    Your Library has been damaged from being run on an overfull disk.
    How much free space on it now?

  • Trying to turn off spotlight because it's a resource hog.  open terminal and enter command but it won't respond or even ask for password.

    trying to turn off spotlight because it's a resource hog.  open terminal and enter command but it won't respond or even ask for password.

    Step #1:
    In System Preferences click on Spotlight.
    Step #2:
    Click on the Privacy tab here.
    Step #3:
    Click on the + button here and when the window opens click on "Macintosh HD" (or whatever you've named your HD) and then click the Choose button.

  • Every Time I do the say command in terminal it shows and error message

    Every time I use the say command in terminal it brings an error message but I does say the message why does it put the error message please help

    This behavior appears to be arising with some 10.8.4 systems, based on some web searches.
    Based on what I've found, there's no specific known trigger, nor any certain cure for this.
    See if the discussion in this thread helps any with resolving the MTBEAudioUnitSoundOutput:: PropagateProperty Error -10851 error. 
    From that discussion thread, please remove any anti-malware software that might be installed and test, and create a second and separate login user and log into that user and test the say command.  
    Also test with the stock voices and not something that's been downloaded, and also (again, as a test, particularly if you're not using an English locale) see if switching your shell locale to the C locale (export LC_ALL=C) alters the behavior.
    If the system is still under warranty or if you have AppleCare with this system, please call Apple support directly and ask.

  • I had a replacement iphone 4 sent from apple through the service plan and now need to change carriers, orange dont now have my imei registered on their database and cant process the unlock can i unlock another way without jailbreak?

    I had a replacement iphone 4 sent from apple through the service plan and now need to change carriers, orange dont now have my imei registered on their database and cant process the unlock can i unlock another way without jailbreak?

    Hi philhardinges,
    You can ask Apple support for the replacement receipt, this receipt would have the old iphone information(including Imei) and the replacement iphone information.
    I had a problem like you and they sent me that information, then with the old imei you can unlock your iphone
    Another way to take the old iphone imei, you can look for the original iphone box, yep, the one i hope you saved carefully somewhere in your house hahaha. The imei is showed on the bottom of the box down-right corner.
    Hope this information can help you.
    Best regards

  • I want to know the ways of connecting 9iAS to Database and clients to database through 9iAS as middleware.

    My question was about the necessity of implementing OID or any other version of LDAP.
    We have a new 9iAS and 8.1.7 database implementation and i have a doubt about their networking architecture.
    I want to know the ways of connecting 9iAS to Database and clients to database through 9iAS as middleware. We are debating if OID is compulsory or if we can go ahead with this implementation with out OID.
    Can you please help me and provide me couple of implementation designs(i.e connecting clients to database through 9iAS). It would be great if any one can provide me the implementation's with and with out OID.
    -Thanks

    Hi ,
    For all delta and full DTP loads you can get  information in table  RSICCONT .Check table  RSMONICDP  this will give you detail information .Here you will get all the information with timestamp and request id .
    Hope these tables will serve your purpose .
    Regards,
    Jaya

Maybe you are looking for