Sponsored Content
Top Forums Shell Programming and Scripting Flock preventing function to work Post 302993836 by batchenr on Wednesday 15th of March 2017 03:37:49 AM
Old 03-15-2017
well solved - i turned out like a newbie
i put the DEBUG after if statement and since this if didn't kicked in the function didn't work.

thanks sorry Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Will the continue function work ????

I have written a script which does a following functions:- 1) Check a area if it is mounted or not 2) If the area is not mounted it will prompt the user to mount the are. 3) Once the area is mounted and the option is given as Y or y the script continues... My question is will the below... (2 Replies)
Discussion started by: kamlesh_p
2 Replies

2. Web Development

work with date function

hi, how can i can pass the value of unixformat to date/time? and how can i retrieve the day/month/year from a date? thanks a lot for your help ps:i using php (1 Reply)
Discussion started by: jasonx22
1 Replies

3. Programming

why printf() function don't go work?

I use FreeBSD,and use signal,like follows: signal(SIGHUP,sig_hup); signal(SIGIO,sig_io); when I run call following code,it can run,but I find a puzzled question,it should print some information,such as printf("execute main()") will print execute main(),but in fact,printf fuction print... (2 Replies)
Discussion started by: konvalo
2 Replies

4. Shell Programming and Scripting

Cannot get grep to work within function.

Hello again, Am having an issue now with getting a simple grep command to work within a function.. The function is as below... function findRecord() { output=grep "001" recordDatabase echo $output } At the moment the "001"... (3 Replies)
Discussion started by: U_C_Dispatj
3 Replies

5. UNIX for Dummies Questions & Answers

copy *. does not work in function

Hi, I want to copy a file/directory ( recursively , if needed) and if destination directory does not exist create it ( with parent directory, if needed). funcopy () { if ; then echo "$2 exists , copying files" cp -r "$1" "$2" else echo "Directory does not exist;Create directory" mkdir... (1 Reply)
Discussion started by: greet_sed
1 Replies

6. Shell Programming and Scripting

How the Sleep function will work?

Hi All, I am new to Unix , there i am facing one problem with sleep command. that is .. in while loop i have defined sleep function .. my condition is like this while #i knew this is infinite loop do sleep 200 echo "hello " done. this condition will never become .. true... (3 Replies)
Discussion started by: mandlysreedhar
3 Replies

7. Shell Programming and Scripting

Function doesn't work

Hello, and here's my problem: I can't get my function to do what I want. When I call my function get_from_A_to_F I give it an argument $remainder. I want my function to substitute a number higher than 9 to a specific letter. If the argument is equal to 10 than it should change it to "A".... (8 Replies)
Discussion started by: linas
8 Replies

8. UNIX for Advanced & Expert Users

Semaphore - lockfile/flock

Hi, I have a process which can run one instance at a time. Currently we have multiple scripts trying to kickoff this process. I wanted to implement the semaphore mechanism to achieve this. I was going through few examples. The below code seems to be reasonable solution. ... (5 Replies)
Discussion started by: tostay2003
5 Replies

9. UNIX for Beginners Questions & Answers

UNIX/Shell function does not work as wished

Hello everyone I really hope you can help me, I can't continue: Im on a project to work with my Server. I wanted to put on my server all data-systems and I did this: df -h The output is a string. How can I turn the string into a table? Dateisystem Größe Benutzt Verf. Verw% Eingehängt auf... (5 Replies)
Discussion started by: anonymuser
5 Replies

10. OS X (Apple)

'time' does NOT work on a function in 'dash'.

Hi guys and gals... I am writing a piece of code that is dash compliant and came across this error. I have put it in the OSX section as that is what I am using. I have no idea what the 'dash' version is but was installed about 6 months ago. MBP, OSX 10.12.6, default terminal running dash on... (4 Replies)
Discussion started by: wisecracker
4 Replies
PTSB(1p)						User Contributed Perl Documentation						  PTSB(1p)

NAME
ptsb - Interact with you Permanent TSB homebanking from your shell! SYNOPSIS
ptsb [options] Print accounts balance: "ptsb [ -F /path/of/conf/file ] -b" Print account statement: "ptsb [ -F /path/of/conf/file ] -s -a c -n <4digits" -f yyyy/mm/dd -t yyyy/mm/dd> If your are running Linux you can use the date --date command to simplify the date range definition. You can put these aliases on your ~/.bashrc: alias ptsb_stat='ptsb --statement -a c -n xyzt' alias ptst_last_month="statement_current -f `date +%Y/%m/%d --date='1 month ago'` -t `date +%Y/%m/%d`" OPTIONS
-h | --help this help usage message! -D | --debug Enable debug. This will be more verbose and will leave html on the current working directory. -F /path/to/config/file | --file /path/to/config/file filename configuration file path (default: ~/.ptsbrc). Please refer to manual page to see how this file is built. -b | --balance print account balance -s | --statement print account statement -T type | --transation-type type Type of transaction to look on the statement. Type can be: ALL, WITHDRAWAL, DEPOSIT -f | --from--date yyyy/mm/dd from date -t | --to-date yyyy/mm/dd to date -a [c | v] | --account-type [c | v] account type: can be 'c' (current account) or 'v' for (visa card) -n digits | --account-num digits 4 digits representing the last 4 digits of the account number or visa card number. -N | --no-balance Do not print balance when printing statement. -r | --regexp When printing statement grep using the regexp provided -e | --expr where expression is a mathematical expression like '<300' '=300' '>=300' the expression will test the euro amount column only lines matching the expression will be printed -g | --graph Print graph of the statement using gnuplot. Gnuplot is required! -i path | --image path Save PNG image in path. -o filename | --output filename Save the output of the statement inside a CSV file named filename. CSV format is: date,description,amount,balance last field presence depends on the -N flag. -v | --version Print version CONFIGURATION FILE
Configuration file default location is ~/.ptsbrc and it looks like this: -------8< -- ~/.ptsbrc -->8---------- open24_number=your_open24_number password=your_internet_password pan=your_personal_access_number -------8< --------------->8---------- However you can put wherever you want. Just remember to use then the option -F /path/to/your/location. Lines beginning with # will be interpreted as comment. Starting from release 0.08 ptsb will use GnuPG to encrypt the configuration file using the private key of the user. Therefore you'll have to create your key if you didn't do this yet. In case you want to decrypt your ptsbrc file use this command: $ gpg -d /path/to/your/ptsbrc This will print the encrypted file on the standard output. SEE ALSO
o Official CPAN page for Finance::Bank::IE::PermanentTSB http://search.cpan.org/~pallotron/Finance-Bank-IE-PermanentTSB/lib/Finance/Bank/IE/PermanentTSB.pm <http://search.cpan.org/~pallotron/Finance-Bank-IE-PermanentTSB/lib/Finance/Bank/IE/PermanentTSB.pm> o Author homepage <http://www.pallotron.net> o Author Blog (italian) <http://www.vitadiunsysadmin.net> o Author homepage on CPAN <http://search.cpan.org/~pallotron/> AUTHOR
Angelo "pallotron" Failla - <pallotron@freaknet.org> BUGS
Please report bugs to the author, no bug tracking system is set up yet. COPYRIGHT AND LICENSE
Copyright (C) 2009 by Angelo "pallotron" Failla This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available. perl v5.12.3 2009-02-17 PTSB(1p)
All times are GMT -4. The time now is 07:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy