Script not working anymore(SOLVED)

I made a basic script and it was working fine for a few hours.I went to work,got back and it stopped working.
I created a folder in  my ~/bin directory and used export PATH=$PATH:~/bin,also i gave the script execution privileges
with chmod 755 pac so I'm not sure where i went wrong .The only thing that comes to mind is that i didn't use chmod u=x pac.
Btw I used echo $PATH and my ~/bin directory was there.As soon as i use the export command again it works
Last edited by unilx (2011-03-05 17:40:18)

I'm still a noob at this but i think it's shell scripting,here is my script:
I use pac to execute this one
1 #!/bin/bash -
2 #===============================================================================
3 #
4 # FILE: pow.sh
5 #
6 # USAGE: ./pow.sh
7 #
8 # DESCRIPTION: A script to execute powerpill and do a system,refresh,refresh,update.
9 #
10 # OPTIONS: ---
11 # REQUIREMENTS: ---
12 # BUGS: ---
13 # NOTES: ---
14 # AUTHOR:
15 # COMPANY:
16 # CREATED: 03/04/2011 04:20:50 AM AST
17 # REVISION: 1.0
18 #===============================================================================
19
20 set -o nounset # Treat unset variables as an error
21
22 clear
23
24 echo "Hello unilx"
25
26 date
27
28 sudo pacman-color -Syyu
29
30 echo "System update complete"
31
32 clear
33
34 exit
and pow for this one
1 #!/bin/bash -
2 #===============================================================================
3 #
4 # FILE: pow.sh
5 #
6 # USAGE: ./pow.sh
7 #
8 # DESCRIPTION: A script to execute powerpill and do a system,refresh,refresh,update.
9 #
10 # OPTIONS: ---
11 # REQUIREMENTS: ---
12 # BUGS: ---
13 # NOTES: ---
14 # AUTHOR:
15 # COMPANY:
16 # CREATED: 03/04/2011 04:20:50 AM AST
17 # REVISION: 1.0
18 #===============================================================================
19
20 set -o nounset # Treat unset variables as an error
21
22 clear
23
24 echo "Hello unilx"
25
26 date
27
28 sudo powerpill -Syyu
29
30 echo "System update complete"
31
32 clear
33
34 exit
and this was the error:
bash: pac: command not found
the same with pow
I know both files say pow.sh.It was a mistake that i just noticed now.I used vim pow.sh to start the syntax and renamed it to pow with :w pow
Last edited by unilx (2011-03-04 20:06:59)

Similar Messages

  • CS3 5.0.4 - Many Scripts not working anymore

    Hello there,
    since the last update some scripts don't work any longer, i.e. rename linked image.jsx or the famous "LabelGraphics_mod.jsx".
    Anybody else with this probem?
    What's to be changed to make the scripts work angain?
    Best,
    d

    Hi Dave,
    I've tried the one line script and it did the job.
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    Best,
    d

  • Wireless iwl4965 under 2.6.31 not working anymore [solved]

    Hi everyone,
    can't get my wireless working after upgrading to iwl4965 on my T61. rfkill is switched on, bluetooth LED lights up, but neither the wifi LED lights up nor any SSIDs show up in NetworkManager. Any ideas? Am I missed anything?
    dmesg
    iwlagn 0000:03:00.0: PCI INT A disabled
    iwlagn: Intel(R) Wireless WiFi Link AGN driver for Linux, 1.3.27ks
    iwlagn: Copyright(c) 2003-2009 Intel Corporation
    iwlagn 0000:03:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
    iwlagn 0000:03:00.0: setting latency timer to 64
    iwlagn 0000:03:00.0: Detected Intel Wireless WiFi Link 4965AGN REV=0x4
    iwlagn 0000:03:00.0: Tunable channels: 13 802.11bg, 19 802.11a channels
    iwlagn 0000:03:00.0: irq 32 for MSI/MSI-X
    phy3: Selected rate control algorithm 'iwl-agn-rs'
    lsmod
    iwlcore 126176 1 iwlagn
    mac80211 179120 2 iwlagn,iwlcore
    fan 5704 0
    cfg80211 104408 3 iwlagn,iwlcore,mac80211
    pacman -Q | grep ucode
    iwlwifi-4965-ucode 228.61.2.24-1
    Solved it.
    rfkill in /proc interface was the point.
    echoing 0 into the specific rfkill did it.
    [root@stylidium ~]# cat /sys/class/rfkill/rfkill6/type
    wlan
    [root@stylidium ~]# echo 0 > /sys/class/rfkill/rfkill6/state
    Last edited by sluo (2009-10-14 16:15:24)

    It works!
    # cp /usr/share/hal/fdi/policy/10osvendor/10-rfkill-switch.fdi /etc/hal/fdi/policy/
    if i rc.d/hal restart nothing change.
    I reboot and it works nice (WHY? reboot? i don't like to)
    Why hal messes up rfkill with touchpad options (via hal fdi)? and still to?
    EDIT: Sorry! i was on another thread! but this could be useful to you too, i refer to this thread: http://bbs.archlinux.org/viewtopic.php? … 75#p637675
    Last edited by pp.f. (2009-10-15 23:54:28)

  • Have a new mac with OS X 10.9.5 and my CS4 is Not Working anymore. It says to Contact Adobe Support regarding the licence- but that Seems impossible. Any idea how to solve this?

    I Have a new mac book pro with OS X 10.9.5 and now my CS4 is Not Working anymore. It tells me to Contact Adobe Support regarding the licence - but that Seems impossible. Any idea how to solve this?

    Use the web chat and just be patient.
    Mylenium

  • After ugrade of my 2007 MacBook to OS X 10.6.8 my printers do not work anymore. Details see below any idea to solve issue? Thx Stefan

    After ugrade of my 2007 MacBook to OS X 10.6.8 my printers do not work anymore, error code: "cgdpdftoraster: cupsRasterInterpretPPD had an error: unknown operator "Statusdict"!". Any idea how to solve this issue? Thx Stefan

    You have 10.6 on that machine, I suggest you stick with it for performance, third party hardware and software reasons as long as possible.
    Consider 10.8 (not 10.7) when it's released, because 10.7 and 10.8 will require a new investment in software and newer third party hardware as it requires newer drivers the old machines won't have. (forced upgrade because of software, really nice of them)
    http://roaringapps.com/apps:table
    Far as your Safari problem do these things until it's resolved:
    1: Software Update fully under the Apple menu.
    2: Check the status of your plug-ins and update (works for all browsers) also install Firefox and see if your problems continue. You should always have at least two browsers on the machine just in case one fails.
    https://www.mozilla.org/en-US/plugincheck/
    Flash install instructions/problem resolution here if you need it.
    How to install Flash, fix problems
    3: Install Safari again from Apple's web site
    https://www.apple.com/safari/
    4: Run through this list of fixes, stopping with #16 and report back before doing #17
    Step by Step to fix your Mac

  • Satellite U400 - the webcam does not work anymore

    Hello guys here is my sudden probloema!
    About a year ago I purchased a laptop
    TOSHIBA - Satellite U400
    with s.o. WinVista 32bit and with integrated webcam chicony etc. ....
    For a year, everything worked correctly, but for some days now, the webcam does not work anymore.
    As soon as I try to open it, a message of management software cam that says "Webcam driver open fail, please restart or computer room"
    I tried to do it all: aggioronato and downloaded the drivers from toshiba, uninstalled the program and re installed the webcam ....! updated bios notebook ....! useless!
    the strange thing .. well that going into device manager ... the webcam is not there ....! but if the launch seems to open just then check quell caz ... Warning!!
    Gan you help me?
    Graziee

    Are you familiar and comfortable with LINUX LIVE bootable discs to load an alternative operating system with unobtrusive but extensive Toshiba device support so you can determine if your webcam hardware is ruined or if the problem is software and possibly solved reinstalling Windows ?
    At this point, you're pondering less time consuming but more expensive choices such as buying another web cam, or another computer and you might be temporarily borrowing someone else's web cam / using a non preferred spare web cam that isn't optimal for your needs.
    Continuously downloading software, registry cleaners, and repeatedly reinstalling drivers will eventually ruin your Windows installation and consume more time than you've wasted so far and still doesn't guarantee to fix your malfunction.

  • TV does not work anymore on Qosmio G10

    Good morning,
    TV does not work anymore, may be due to an update. It has been working OK before.
    When selecting TV option 'TV direct ' with MCE menu, I get the following error message: "necessary files for video display are not installed or do not work properly, restart MCE or the computer". Restarting MCE and / or G10 does not solve the problem.
    -Intervideo WinDVD creator is installed.
    -TV PCI tuner seems to work properly (as per hardware status)
    Which files can be missing? What needs to be done?
    Any help, suggestions, well appreciated.
    Thank you to anyone answering this message.

    Hello Luciano
    Like you know on this way it is not easy to give you precise answer because we dont know what did you done exactly with your Qosmio.
    Please try to use System restore tool at first and roll back the operating system to earlier time. Maybe this will help you and the MCE configuration will be as before.
    Try it at first.

  • After upgrading to 10.7.5 some of my AU plugins can not be validated in Logic pro. (I got error message "Remove property listener". I can not work anymore. What should I do?

    After upgrading to 10.7.5 some of my AU plugins can not be validated in Logic pro. (I got error message "Remove property listener". I can not work anymore. What should I do?
    VIBAC

    I downloaded and installed
    OS X Lion 10.7.5 Supplemental Update
    and that solved my problem completely. (368 AU plugins now works!)

  • After updating my iPod touch 3rd generation to IOS5 some default apps are not working (anymore)

    Hi,
    I updated my iPod touch 3g from IOS 4.x to IOS 5 last week and since then my iPod makes troublle!
    First of all, during the update I did not see any Problems. After the update, I mean the step where the data will be restored to the iPod, I synchronized some APPS at the same time, maybe that was a big mistake. My iPod makes hard resets many times in a loop until it frozes.
    So the only thing I could do here is pressing the home button and the power switch at the same time until it gets rebooted. The sync started again and it looked like everything runs fine.
    As I tried to use iMessage first time I realised the first Problem: I am unable to loginto iMessage with my Apple ID. My Apple ID runs fine, I can by Apps and so on. I also enabled iCloud to see that my Apple ID is ok. But logging into iMessage I put in my Apple credentials and Password, click on next, wait 3 seconds and the screen flips back. So this feature is not working.
    Next issue I see is that randomly my iPod hard resets itself. Even if I don't do anything with my iPod I can see that it resets itself, booting with the apple icon. This happens minimum three times a day... (Exception Type: EXC_BAD_ACCESS (SIGSEGV), Kern_INVALID_ADDRESSat 0x00000000)
    Today I tried YouTube, an internal Application which I cannot reinstall. It's not working anymore, starting YouTube says: Unable to connect to YouTube!
    I have no clue whats going on here because email and web is working fine.
    In my eyes I would like to reset the whole device to a state before running IOS5 and I would try the update again. But my Question is how to reinstall IOS5?
    If IOS5 will not run smoothly on my iPod, I would prefer to backref to iOS4x.
    Is there anyone who could help me out here?
    Thanks,
    Daniel

    Found the rootcause. The battery was damaged and unable to have enough power to keep the device alive. After changing the device problem is solved.

  • Audio Jack of my HP Envy 4 is not working anymore

    Hi all,
                I have purchased HP Envy 4 just a 4 months ago and now something worong with its audio jack for headphone and its not working anymore. The hardware profile for this audio jack shows no error but its still not working. Is there anyone who can help me out this issue???
    Regards,
    This question was solved.
    View Solution.

    Lets start with you helping us by identifying your notebook completely.
    HP has produced and brought to market more than a thousand different models of notebooks and desktop PCs over the years. It is difficult to help you if we don't know which specific model you own..
    Method #1: If the notebook will boot into Windows, you can retrieve your Product Number by pressing Fn + Esc key.
    Method #2:
    Remove the battery and look in the compartment where the battery was installed. You should see a Service tag with printed part number and a product name. Please post the p/n (with all alphanumeric characters) here. If you live outside of North America, it helps us if you post the country of purchase. Also post the installed CPU type. (AMD or Intel)
    Don't forget to post the name of the installed operating system if you haven't already done that.
    If Windows 8 is installed, you can invoke the search charm and  type in the word audio and then on the right hand side of the screen click on Settings. On the left hand side of the screen, you should see an option to select Find and fix audio playback problems.  Try it to see if it resolves the issue for you.
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • After updating my MBP to firmware 1.1 my internet does not work anymore

    Please help,
    A couple of days ago my MBP asked me if I wanted to update to Firmware 1.1 and I did. I followed the steps like it said and when I restarted it my internet was not working anymore. I called my internet provider and they tried helping me but no luck.They gave me the codes and I tried to set up the PPP address and other codes.
    I am using a DSL cable and a Ethernet connection.
    Does anyone know how I could solve this?
    Thanks!

    Try resetting your iPad:
    Double click the Home button. Slide up with one finger on ALL your apps to close them.
    Then, Press the Sleep/Wake button + Home button and hold 15 seconds or until you see the Apple logo.
    This will reset your device without erasing data, apps or settings.

  • My Google search autocomplete me in Firefox does not work anymore. However, it still works with Internet Explorer. How can I fix this so Google gives me search suggestions again?

    My Google search autocomplete me in Firefox does not work anymore. However, it still works with Internet Explorer. How can I fix this so Google gives me search suggestions again?

    Solution update: Disabled XULRunner 1.9.1 extension from Add-ons > Extensions. Problem solved.

  • Wireless All-in-One B110 is not working anymore ?

    Hello dear, my All in One is not working anymore since 2 weeks. Could you solve the problem for me please ?
    Thank you so much
    Peggy [edited personal information by Moderator]

    Hi, take a look at this link for a possible fix.
    Please mark the post that solves your issue as "Accept as Solution".
    If my answer was helpful click the “Thumbs Up" on the left to say “Thanks”!
    I am not a HP employee.

  • App contact is not working anymore

    Since some weeks, the Contact app is not working anymore on my MBA.
    Symptoms :
    Contact is very slow and crashes very often
    The contact list contains all entries, but when I select one, on the right side, the message is "Aucune fiche" (I''m French, so => "No card")
    When I create a event in the calendar, when I try to add people, it takes around 2/3 seconds to dispâly names, each time I enter a letter
    If I try to find duplicates, the app crashes :
    Process:         Contacts [4980]
    Path:            /Applications/Contacts.app/Contents/MacOS/Contacts
    Identifier:      com.apple.AddressBook
    Version:         8.0 (1365)
    Build Info:      AddressBook_executables-1365000000000000~1
    Code Type:       X86-64 (Native)
    Parent Process:  launchd [163]
    Responsible:     Contacts [4980]
    User ID:         501
    Date/Time:       2014-02-20 12:14:47.403 +0100
    OS Version:      Mac OS X 10.9.1 (13B42)
    Report Version:  11
    Anonymous UUID:  8D877461-6930-FF22-A7F5-886A7838651B
    Sleep/Wake UUID: 6EDF1A0D-AD55-4AEB-B7B4-3DE02F6C30DD
    Crashed Thread:  8
    Exception Type:  EXC_CRASH (SIGABRT)
    Exception Codes: 0x0000000000000000, 0x0000000000000000
    Application Specific Information:
    *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid parameter not satisfying 'uniqueIDs != nil''
    terminating with uncaught exception of type NSException
    abort() called
    Any idea to solve my issue ?
    Thanks

    just reset your iphone and then re update it from itunes. then things should work smoothly

  • APEX2.0 on 9i not working anymore after installation of 10G database

    Hello,
    Up to last saturday I used APEX 2.0 on my 9i database (on Windows XP) without problems. I have several applications running and used them saturday for the last time.
    Saturday I installed Oracle 10G Enterprise Edition on that same machine. I installed ONLY the software for the RDBMS, not even APEX. Later on I created my first 10g database via DBCA. Notice that I didn't do anything with APEX on that 10g database yet. I only installed the RDBMS software in a 10g home directory and created a database. That's all. No apex installed, nothing from the companion CD, only the RDBMS software in its own home.
    Yesterday however, after a reboot of the machine, I could not use my applications running on the 9i database anymore: "the page cannot be found".
    HELP!!!
    What was changed by the installation of 10g that now causes that my applications cannot be accessed anymore? The 9i database runs OK, so that's not the problem.
    I did already change the PATH settings, so that the 9i paths are checked before the 10.2 paths, but that did not solve the problem.
    Has the installation changed something in the registry of XP perhaps?
    Best regards,
    Jan.
    Best regards,
    Jan.

    Hi all, in answer to the above suggestions:
    No the 10g database and listener is completely down (no services belonging to the new 10g database are running). I checked also alle the logs, but no messages anymore since saturday.
    What I did notice: Oracle92HTTPserver (a service normally started automatically) does not start. When I start it, it gives me a message that there is nothing to do and that the service therefore is not started. So the HTTP-server itself is not working anymore. I can't find any files changed by th installation in the Ora92 home Apache directories. All seems as it was before the installation And still it won't start....
    Does anybody have other suggestions? Please help.
    Thanks in advance,
    Jan.

Maybe you are looking for

  • Re : select-options in abap objects

    Dear friends, I want to give select-options in abap-objects program. How to give that. Thanking You with regards, Mani

  • Help me to do this hard task

    i am Oracle DBA for a company from yesterday really i face critical problem which is that we have 17 data servers ( don't smile it's truth), we use various operating systems (Windows servers and Linux Redhat), i try to make strategy to collect all th

  • Problem in F-30 transaction

    Hello All, I need to have two more fields(Dunning level and last dunned) in F-30 transaction screen number 331 which are also from the table bseg as the other fields in the screen. Can you please tell me how to acheive this.? Is there any exit for th

  • HT2513 no days of week except in full screen

    In week view, how do I see the days of the week label? I can only see the labels when I am in full screen mode, which won't cut it.

  • Let Auto-Map in Transform work with COLLAPSED nodes/tags ?

    When I open for a "Transform" activity the mapping editor and drag one complextype from one side to another on the other side then Auto-Mapping only works if the node/tag trees on both elements/sides are full expanded. If they are collapsed then auto