Sponsored Content
Top Forums Shell Programming and Scripting Is it possible to write write multiple cronjobs in shellscript?? Post 302973597 by vbe on Thursday 19th of May 2016 06:28:00 AM
Old 05-19-2016
This looks like homework/classwork or interview Q
Thread closed
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to write multiple echo statements in unix?

How to write multiple echo statements in unix? echo "************************************************************************************************************"; echo This Script do the following functions echo 1. Point 1 echo 2. Point 2 echo 3. Point 3 echo... (2 Replies)
Discussion started by: Shrutiduggal
2 Replies

2. Shell Programming and Scripting

How do I write multiple variable syntax?

I am trying to write a script that will do a sql statement. But in the sql I will have a list (1,2,3,4). How would I go about asking for the input from the user running the script, and then transferring that back into the list as say ($var1,$var2,$var3)? It would be somewhat like this: ... (1 Reply)
Discussion started by: Captain
1 Replies

3. Shell Programming and Scripting

Find all files with group read OR group write OR user write permission

I need to find all the files that have group Read or Write permission or files that have user write permission. This is what I have so far: find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}' It shows me all files where group read = true, group write = true... (5 Replies)
Discussion started by: shunter63
5 Replies

4. Shell Programming and Scripting

Giving write permission to multiple directories

Hi, i am having following directory structure Folder1 -> Folder2 -> Folder3 Folder4 Folder5 Now i am at top level and want to assign write permission to all the folder & files in it. i am... (3 Replies)
Discussion started by: sarbjit
3 Replies

5. IP Networking

read/write,write/write lock with smbclient fails

Hi, We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the... (1 Reply)
Discussion started by: swatidas11
1 Replies

6. Shell Programming and Scripting

how to write a shellscript to send a mail alert to the website user based on license expiration time

hi, i am very much new to shell scripting i have a requirement that i have to develop a License Renewal Alert system that has to give a alert mail to the users before 30days of user account expiration, by checking expiration date of the user with the data base, this system will... (0 Replies)
Discussion started by: deepu_Shscripts
0 Replies

7. Shell Programming and Scripting

Batch write multiple usb in same time

Hi there, I would write a bash script to format then create a range of folder (folder name is number) to a usb stick. for numbers in $(seq -w 001 999) do pause "Press any key to start" mkfs.vfat -F32 /dev/sdc1 mount /dev/sdc1 /media/usb mkdir /media/$numbers umount /dev/sdc1... (8 Replies)
Discussion started by: wayneliao38
8 Replies

8. AIX

NFS multiple write error.

Hi, We are taking the mksysb backup to NIM server's NFS mount point (/backup). We have mounted /backup to all the clients /backup and full permission. When multiple mksysb backup starting simultaneously to the NIM server's shared NFS mount point then only one backup is running and all others... (3 Replies)
Discussion started by: sunnybee
3 Replies

9. Shell Programming and Scripting

How to write multiple cronjobs in shellscript?

Hi All, I need the answer of below question? 1) How to write multiple cronjobs in shellscript? Is there any way or we cant write in shellscript... this is interview question Regards, Priyanka (1 Reply)
Discussion started by: pspriyanka
1 Replies

10. Programming

Interactive Python 3.5+ sys.stdout.write() AND sys.stderr.write() bug?

(Apologies for any typos.) OSX 10.12.3 AND Windows 10. This is for the serious Python experts on at least 3.5.x and above... In script format sys.stdout.write() AND sys.stderr.write() seems to work correctly. Have I found a serious bug in the interactive sys.stdout.write() AND... (2 Replies)
Discussion started by: wisecracker
2 Replies
Thread::Semaphore(3pm)					 Perl Programmers Reference Guide				    Thread::Semaphore(3pm)

NAME
Thread::Semaphore - thread-safe semaphores SYNOPSIS
use Thread::Semaphore; my $s = new Thread::Semaphore; $s->up; # Also known as the semaphore V -operation. # The guarded section is here $s->down; # Also known as the semaphore P -operation. # The default semaphore value is 1. my $s = new Thread::Semaphore($initial_value); $s->up($up_value); $s->down($up_value); DESCRIPTION
Semaphores provide a mechanism to regulate access to resources. Semaphores, unlike locks, aren't tied to particular scalars, and so may be used to control access to anything you care to use them for. Semaphores don't limit their values to zero or one, so they can be used to control access to some resource that there may be more than one of. (For example, filehandles). Increment and decrement amounts aren't fixed at one either, so threads can reserve or return multiple resources at once. FUNCTIONS AND METHODS
new new NUMBER "new" creates a new semaphore, and initializes its count to the passed number. If no number is passed, the semaphore's count is set to one. down down NUMBER The "down" method decreases the semaphore's count by the specified number, or by one if no number has been specified. If the sema- phore's count would drop below zero, this method will block until such time that the semaphore's count is equal to or larger than the amount you're "down"ing the semaphore's count by. up up NUMBER The "up" method increases the semaphore's count by the number specified, or by one if no number has been specified. This will unblock any thread blocked trying to "down" the semaphore if the "up" raises the semaphore count above the amount that the "down"s are trying to decrement it by. perl v5.8.0 2002-06-01 Thread::Semaphore(3pm)
All times are GMT -4. The time now is 08:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy