How to shell script for noob? or Cryptography for someone who doesn't need.

Hi, I've seen the need of automating some tasks in the Terminal and I believe using shell scripts is my solution, although I don't really even understand how they work.
Instead of posting a full how-to here, I'd like to ask if anyone knows about good comprehensive guide for someone who never used any programming language, yet knows how to work a bit with the Terminal?
I will figure out the command I will need to input in the Terminal myself, by testing. Once it's figured all I need is to make a shell script out of it, and perhaps make an application out of it. (Automator? ... or more Script Editor? Or?)
Thanks
After seing this page...
http://www.askdavetaylor.com/howcan_i_secure_encrypt_folders_on_my_macs_usb_flashdrive.html
... I believed to have found a great solution for some heavy cryptography, to protect some folder and for learning pleasure. What I wanted to do is to automate the openssl task mostly like this:
Open my flash drive (or a certain folder) containting a disk image (uncompressed, or compressed if necessary, doesn't matter) but uncrypted. Clicking on something I will name 'Lock' for the moment will run the shell script, encrypting the said image with pre-set parameters and a password I will input when prompted by the app.
Re-running the app will prompt me a password and simply un-encrypt the image, making it useable for me.
That's all. Perhaps if I can do it, I'll make it prompt me what cipher and all other parameter to use, but I don't understand openssl very well yet. *I just read and understood more or less informations on that page.*
Who knows, I'll end up with a sweet GUI for encrypting files usable by the common mortals.

The Advanced Bash Scripting Guide is a great resource for beginners thru advanced users- http://tldp.org/LDP/abs/html/index.html

Similar Messages

  • How do you get your iPhone to stop connecting to face time while on a voice call? And it also does this when I'm on the phone with someone who doesn't have an iPhone. I look down at my phone while on a call and it says connecting to face time

    How do you get your iPhone to stop connecting to face time while on a voice call? And it also does this when I'm on the phone with someone who doesn't have an iPhone. I look down at my phone while on a call and it says connecting to face time

    How are you dialing these calls?

  • HT4993 How do you get your iPhone to stop connecting to face time while on a voice call? And it also does this when I'm on the phone with someone who doesn't have an iPhone. I look down at my phone while on a call and it says connecting to face time

    How do you get your iPhone to stop connecting to face time while on a voice call? And it also does this when I'm on the phone with someone who doesn't have an iPhone. I look down at my phone while on a call and it says connecting to face time

    How are you dialing these calls?

  • How to text to someone who doesn't have an iphone

    how do you text someone who doesn't have an iphone

    Make sure your cellular service includes SMS messaging. Also make sure the person you are trying to text has an account with SMS messaging. As long as both have this service just use the Messages app and send the message to the individuals phone number.

  • It is telling me i owe money but if it is free how n wat i suppose to have purchase dont work who do i need to talk to

    how is it that i cant get no more free appt n the one i was suppose to purchase dnt work .Help who do i need to talk to

    If you owe money,then you have to pay before you can download anything.

  • Power shell script failed to run - reasons for it and some background?

    Hi there
    I have been receiving some alerts with high repeat count that Powershell script failed to run.
    All of them are coming from one server and all of them are related to SQL2012 installation. The following scripts generate alerts:
    CPUUsagePercentDataSource.ps1
    StolenServerMemory2012.ps1
    DBDiskLatencyDataSource.ps1
    I am quite new to SCOM and still trying to find my way around conveniently - I would appreciate your help if you could explain me one thing: are these scripts executed locally or through remote PSSession to the target? The point is I couldn't find any of
    these scripts on my server to re-run them (and possibly catch exceptions).
    The repeat count for past two months is quite high, for 8 alerts between 25 / 80.
    Thanks in advance!
    AlexP

    The agent downloads the script and it is run locally on the agent machine, in your case the SQL Server. Usually most of these type scripts are held in the Agent folder under scritp/downloads, (sorry dont have the full path in front of me or I would give
    it to you).
    These errors are probably due to the fact that SQL 2012 does not give any rights to the Local System Account which is the context in which the SCOM agent runs scripts as, and is unable to access SQL information due to this fact. The easiest way to fix this
    is to setup a run as account, which would be an account on your domain that has local admin access to the SQL box and has SA rights to the instance of SqL running on that box. See the following blog posts on how to fix this.
    http://blogs.technet.com/b/kevinholman/archive/2010/09/08/configuring-run-as-accounts-and-profiles-in-r2-a-sql-management-pack-example.aspx
    Hope this helps! this will probably create more questions...
    Scott Moss MVP (Operations Manager) President - System Center Virtual Users Group |Vice President - Atlanta Southeast Management Users Group (ATL SMUG)
    Please remember to click “Mark as Answer” on the post that helps you!
    my new blog om2012.wordpress.com

  • Is there an and in original box with cables. Item cannot be activated because of cloud lock. Preof cloud lockvious user login is UNKNOWN. Unit is sold as is for parts or use by someone who knows how to fix this issue

    Amazon has a refurbed I pad Air with this remark. Item cannot be activated because of cloud lock previous user login unknown. Is there a work around or is it best to forget this one and move on?

    You are welcome, at least the seller was honest enough to let potential buyers know that the device is useless to anyone who would try to buy it.

  • Setting up an ipad for someone who doesn't have a computer

    I want to get my parents an ipad but they don't have a computer.  I'm happy to use my computer but I don't want to mess up my own itunes account.  Any pointers on how to do this would be appreciated.  They are both in the late 80s so making them tech savvy at this point is out of the question but I think many of the aps will be very stimulating for them.  My plan is to set them up with email addesses, load some good aps and give it to them ready to go.

    You no longer need a computer to set-up an iPad. It can all be set-up from the iPad as long as you have a wireless connection:
    http://manuals.info.apple.com/en_US/ipad_user_guide.pdf
    http://www.imore.com/setup-ipad
    Alan

  • How can I stop you from blocking a page when it doesn't need to be blocked

    When I try setting up the new myyahoo page, you have a shield blocking the page, but when I try to tell you to stop blocking, your page comes up with checking certificate to allow exception, but then after checking it tells me it has a valid certificate and does need an exception, but you still keep blocking. I need you to stop blocking my yahoo so I can set up the page as it was before switching to the newest version. If this can't be fixed, I will have to stop using Mozilla. I know this is set up as a safety for me, but it's not working. This page has a valid certificate, so you shouldn't be blocking it.

    Hi widowward, is the certificate error for the main page or for something embedded in the page?
    If you right-click the error part, do you find "This Frame" on the right-click menu? If so, please expand "This Frame" and use Open in a New Tab. Then copy the address from the address bar and paste it back here in a reply. (I'll try to get back to you more promptly, so go ahead and leave that tab open.)
    If the error is for My Yahoo itself, that's strange. If you expand the sections of the error page, what is the technical explanation? If you try the Add Exception dialog and view the certificate, do you see a different issuer than I see (attached)?

  • How to run a java class from a shell script with passing arguments

    hi,
    I have a jar with all the required classes. I was using ant to run the classes i needed.
    But now i want to use a shell script to run the class, also the class accepts some arguments so when script is run it should accept arguments.
    So can any one tell me how to set class paths, jar location and call the required class from shell script or batch file with passing arguments to it.
    Thanks in advance.

    Let's say that the order of arguments is as below
    1. Jar file name
    2. Classpath
    Your shell script would look like this
    java -cp $CLASSPATH:$2 -jar $1 I am assuming that your jar file has the required main-class entry in its manifest. Note that $1...$9 represent the arguments to this shell script.
    The same goes for a batch file
    java -cp %CLASSPATH%;%2 -jar %1

  • How to engage Shell Script resource action in an Active Sync workflow.

    A little background, at my organization I have IDM set up simply to recognize changes in LDAP and transmit those changes, via active sync, to AD. We don't yet use the IDM interface to make any changes to users, instead we use external interfaces that we have written to make changes to LDAP which then get picked up via Active Sync and synchronized to AD. However, in addition to AD, there are several other resources that we would like to gradually wrap into this active sync workflow via native and custom resource adapters. Currently I am working on a simple Shell Script resource to manage Linux home directories. I have written all the necessary code and created the resource itself within IDM. This all seems to work, I can create, delete, disable, etc.. users in our Linux environment from the IDM interface.
    Here is the problem, I would like to integrate the creation, deletion, enabling, disabling, etc.. of users into the same Active Sync workflow that engages whenever a change is made to LDAP. This way, whenever a user is created in LDAP (and consequently AD), that user will be granted a home directory in Linux. Unfortunately it seems that Shell Script Resources are not enabled for Active Sync. Any ideas on how one might accomplish this?
    Thanks in advance.

    Thank you for the prompt reply. Funny thing is that I have been banging my head on this problem for a couple weeks now (this is my first attempt at real customization ... ). I finally got desperate and decided to reach out for help. After I posted this message I came to a realization that ended up solving the problem for me, go figure.
    For anyone in my place I can relate what I ended up doing, simple as it was. Keep in mind, of course, that this is a highly customized environment that I am working in so the specifics probably wont apply. What I basically did, is I found an LDAPCreateUserProcess form that gets invoked when Active Sync is run. For all I could tell, this simply processed the new attributes that came through Active Sync and related them to their llighthouse / AD counterarts. But I noticed a line like this:
    <Field name="waveset.resources">
    <Expansion>
    <filterdup>
    <appendAll>
    <ref>waveset.resources</ref>
    <s>AD</s>
    </appendAll>
    </filterdup>
    </Expansion>
    </Field>
    and simply added the name of my shell script resource under the <s>AD</s> line. That was it.
    Anyway, thanks bobm53, I can now get on with my life :-)

  • How to Compile the PL/SQL Package/ Procedure using shell script

    Hi,
    I tried to Compiled the shell script but I am facing some error.
    Can any one help me how to compile the PL/SQL shell script without error. Awaiting for your valuable reply.
    Thanks,
    Arun Prakash

    user8726849 wrote:
    PL/SQL shell script without errorWhat's a PL/SQL shell script?
    Can you please post exactly what you are trying to do (As in the actual code that you are executing and its output)? Also please post it in \ tags (See FAQ).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Shell scripting for hot backup

    Hi,
    can you please give me shell scripting and it's explanation for taking hot backup. and which shell scripts are frequently use in real time.
    thank a lot in advance.

    HAve you ever heard about RMAN ? Much better than reinvent the wheel.
    http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmquick.htm
    Nicolas.

  • Ways to run a shell script that starts a python script

    I have a shell script that is used to launch a python (2.5.1 installed via Fink) script (IDLE). The shell script, the IDLE script, and the python binary are all in /sw/bin as usual. This all has to be done AFTER X11 has been launched. I have to make this easy for my students to use.
    In each account's home .xinitrc file, I have the lines
    source .profile
    vpython2.5 *
    and this works, but it calls the vpython2.5 script every time X11 is launched. I've tried adding the vpython2.5 command to the X11 Applications menu, but this works ONLY if I add /sw/bin to the script name. Apparently the menu doesn't "know" about the current PATH setting. The keyboard shortcut I put in the menu neither shows up nor works either. So much for that option.
    Now I've discovered Platypus and it looked promising, but I'm obiously not using it correctly and from the documentation, I can't figure out what I'm doing wrong.
    So here's the ultimate question. Is there a way to use Platypus to encapsulate the vpython2.5 script, preferably also starting up X11, so students will only have to click on the new app's icon? This is how OpenOffice.org starts up. It seemed simple enough to do in Platypus, but I never saw the IDLE window open up.

    I added a shortcut key "j" for the "xman" app in X11, and it seems to work fine. Did you press the command key with the shortcut key? Are you sure the shortcut key you selected does not overlap with others in the menubar?
    There should be no problems creating an application with Platypus using a shell script. In my experience, you have to source all necessary files, assuming that the shell script does not recognize your terminal settings. You can also launch X11.app in the shell script with the following command:
    command open -a X11
    It is a good idea to pause the shell script until X11 finishes launching. To do this, you need a command like,
    command sleep 5
    Otherwise, if you try to start X11-dependent apps in the shell script while X11 is launching, it will fail. There may be better ways to do this.
    Hope this helps.

  • SQL Query in Shell script

    Hi everyone,
    I am facing a difficulty in writing a query for a table REF_PRODUCT having some columns like OFFER, PROVIDERID.
    The problem statement is
    if the OFFER not in ('A','B','C') then x='D'
    if x is empty then
    if providerid in (some values) then x='A'
    else if providerid in (some other values) then x='B'
    else x='C'
    where x is a variable in shell script.
    I want to execute the above in shell script. how to manage this?
    Please help..
    Regards
    Abhi

    user8744860 wrote:
    I am facing a difficulty . . . Etc . . .
    I want to execute the above in shell script. how to manage this?
    Please help..
    1) What you posted is not a shell script.
    2) In order for us to help you with your question, you need to post a working test case: create table and insert statements
    as well as the expected result from that data. Provide also an explanation of the rules that lead to this result.
    3) Also provide any code you have written.
    :p

Maybe you are looking for

  • Can't sync ical across two users on the same Mac

    I hope I can get some help. My wife and I had our ical's sync'd when we had a .mac account. My .mac account expired and we upgraded to Mobileme. Since then we have not been able to sync our icals on the same mac. I spent an hour with chatting with ap

  • How to call java code in xsl?

    I'm trying to call java code in xsl. I've not been able to do so so far....any help is greatly appreciated. Here's my xsl: <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.1"           xmlns:xalan="htt

  • How do I debug scriptlet code?

    Hi, My code crashes everytime I submit to the page below which as you can tell is a mix of scriptlet code and html (not the best design but that's what I inherited). When I put a breakpoint where it says [breakpoint] (for illustrative purposes), save

  • Internet sharing seems to conflict with ichat video and theatre

    I don't use a base station. I broadcast wifi from my imac using internet sharing. With this option enabled, ichat 4.0 video and theatre will not work on my machine

  • How to use LabVIEW code in a Thesis?

    Hello, If I write some code, for example, in MATLAB or C++, that I want to include in my thesis as part of a discussion or in the Appendix, it's a fairly straightforward process: copy/paste However, this isn't really an option for LabVIEW code. Even